diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:33 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:33 -0400 |
commit | cc495557dfaeca552595cda8cd4427d67aa0142e (patch) | |
tree | e26240674a69c413cad3c8a49a9f4ffd6fb2cfd6 /drivers/ide/ide-floppy.c | |
parent | c7016e95a556098db6dc4d9096a6189be9e18266 (diff) |
ide-floppy: remove superfluous check from ide_floppy_end_request()
There should be no functional changes caused by this patch.
Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r-- | drivers/ide/ide-floppy.c | 4 |
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); |