mtd: blkdevs: remove dead code
authorBrian Norris <computersforpeace@gmail.com>
Sat, 28 Feb 2015 10:02:29 +0000 (02:02 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Mar 2015 22:21:48 +0000 (15:21 -0700)
The only exit (break) from the preceding loop is nested within a
condition which yields req == NULL. This code is dead.

Coverity CID #752669

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtd_blkdevs.c

index d08229eb44d8a8911dc49c6cbdba51ec99cdbdf0..2b0c528709997a618d672e55c50bb44336a8cd69 100644 (file)
@@ -171,9 +171,6 @@ static void mtd_blktrans_work(struct work_struct *work)
                background_done = 0;
        }
 
-       if (req)
-               __blk_end_request_all(req, -EIO);
-
        spin_unlock_irq(rq->queue_lock);
 }