]> Pileus Git - ~andy/linux/commitdiff
ide-floppy: remove superfluous check from ide_floppy_end_request()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:33 +0000 (12:46 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:33 +0000 (12:46 +0100)
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>
drivers/ide/ide-floppy.c

index 39e7fda37c5fbce1430535206565e5510ba69b40..6dda0fba017b5a6fb96bb067aaf324ee9763916f 100644 (file)
@@ -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);