Skip to contentSkip to conversation

floppy: duplicate FD_RAW_NEED_DISK

PATCH New roel kluin 1 participant 1 message Aug 18, 2008

Subsystems (2)
lore
Share & tools
lore

roel kluin

author
#0 lore raw

PATCH 1/1 floppy: duplicate FD_RAW_NEED_DISK

Maybe some other flag was needed? otherwise the
patch below cleans it up.
---
duplicate FD_RAW_NEED_DISK

---

drivers/block/floppy.c +1 -2
index 395f8ea..c59ae10 100644
@@ -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;