aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-floppy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r--drivers/ide/ide-floppy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index 39e7fda37c5f..6dda0fba017b 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -91,9 +91,7 @@ static int ide_floppy_end_request(ide_drive_t *drive, int uptodate, int nsecs)
91 91
92 if (error) 92 if (error)
93 floppy->failed_pc = NULL; 93 floppy->failed_pc = NULL;
94 /* Why does this happen? */ 94
95 if (!rq)
96 return 0;
97 if (!blk_special_request(rq)) { 95 if (!blk_special_request(rq)) {
98 /* our real local end request function */ 96 /* our real local end request function */
99 ide_end_request(drive, uptodate, nsecs); 97 ide_end_request(drive, uptodate, nsecs);