summaryrefslogtreecommitdiff
path: root/drivers/block/floppy.c
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2012-07-28 19:45:59 +0800
committerJiri Kosina <jkosina@suse.cz>2012-07-31 11:38:39 +0200
commit2fb2ca6f5b953192d5a94fcc778d9abba06462df (patch)
tree6ad1eedd2c96aefebdb1feb305e88ad5ece37dd8 /drivers/block/floppy.c
parent0cc15d03bcccdf95e2bd82e094e6064e61b54207 (diff)
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>
Diffstat (limited to 'drivers/block/floppy.c')
-rw-r--r--drivers/block/floppy.c3
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;