Skip to content

Commit

Permalink
floppy: remove duplicated flag FD_RAW_NEED_DISK
Browse files Browse the repository at this point in the history
Fix coccinelle warning (without behavior change):

drivers/block/floppy.c:2518:32-48: duplicated argument to & or |

Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
Fengguang Wu authored and Jiri Kosina committed Jul 31, 2012
1 parent 0cc15d0 commit 2fb2ca6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2fb2ca6

Please sign in to comment.