lkml.org 
[lkml]   [2008]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] floppy: duplicate FD_RAW_NEED_DISK
Maybe some other flag was needed? otherwise the
patch below cleans it up.
---
duplicate FD_RAW_NEED_DISK

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 395f8ea..c59ae10 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -2622,8 +2622,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;

\
 
 \ /
  Last update: 2008-08-18 19:01    [W:0.023 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site