Messages in this thread Patch in this message | | | From | Bartlomiej Zolnierkiewicz <> | Date | Sun, 01 Feb 2009 20:27:46 +0100 | Subject | [PATCH 2/8] ide-floppy: remove superfluous check from ide_floppy_end_request() |
| |
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Subject: [PATCH] ide-floppy: remove superfluous check from ide_floppy_end_request()
There should be no functional changes caused by this patch.
Cc: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> --- drivers/ide/ide-floppy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Index: b/drivers/ide/ide-floppy.c =================================================================== --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c @@ -91,9 +91,7 @@ static int ide_floppy_end_request(ide_dr 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);
| |