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-Tag: firefly_0821_release~15198^2~35 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cc495557dfaeca552595cda8cd4427d67aa0142e;p=firefly-linux-kernel-4.4.55.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 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) 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);