Skip to content

Commit

Permalink
ide-floppy: remove superfluous check from ide_floppy_end_request()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent c7016e9 commit cc49555
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ide/ide-floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ static int ide_floppy_end_request(ide_drive_t *drive, int uptodate, int nsecs)

if (error)
floppy->failed_pc = NULL;
/* Why does this happen? */
if (!rq)
return 0;

if (!blk_special_request(rq)) {
/* our real local end request function */
ide_end_request(drive, uptodate, nsecs);
Expand Down

0 comments on commit cc49555

Please sign in to comment.