From: Bartlomiej Zolnierkiewicz Date: Fri, 27 Mar 2009 11:46:33 +0000 (+0100) Subject: ide-floppy: remove superfluous check from ide_floppy_end_request() X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cc495557dfaeca552595cda8cd4427d67aa0142e;p=linux-2.6-omap-h63xx.git ide-floppy: remove superfluous check from ide_floppy_end_request() There should be no functional changes caused by this patch. Acked-by: Borislav Petkov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 39e7fda37c5..6dda0fba017 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) 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);