diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2012-07-28 15:45:59 +0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-07-31 13:38:39 +0400 |
commit | 2fb2ca6f5b953192d5a94fcc778d9abba06462df (patch) | |
tree | 6ad1eedd2c96aefebdb1feb305e88ad5ece37dd8 | |
parent | 0cc15d03bcccdf95e2bd82e094e6064e61b54207 (diff) | |
download | linux-2fb2ca6f5b953192d5a94fcc778d9abba06462df.tar.xz |
floppy: remove duplicated flag FD_RAW_NEED_DISK
Fix coccinelle warning (without behavior change):
drivers/block/floppy.c:2518:32-48: duplicated argument to & or |
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/block/floppy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 1347ba8b8377..9d6ef68e2f1b 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -2516,8 +2516,7 @@ static int make_raw_rw_request(void) set_fdc((long)current_req->rq_disk->private_data); raw_cmd = &default_raw_cmd; - raw_cmd->flags = FD_RAW_SPIN | FD_RAW_NEED_DISK | FD_RAW_NEED_DISK | - FD_RAW_NEED_SEEK; + raw_cmd->flags = FD_RAW_SPIN | FD_RAW_NEED_DISK | FD_RAW_NEED_SEEK; raw_cmd->cmd_count = NR_RW; if (rq_data_dir(current_req) == READ) { raw_cmd->flags |= FD_RAW_READ; |