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>
This commit is contained in:
parent
0cc15d03bc
commit
2fb2ca6f5b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue