summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtd_blkdevs.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-02-28 11:02:29 +0100
committerBrian Norris <computersforpeace@gmail.com>2015-03-11 23:21:48 +0100
commite22b7651ef23ad90eed4bdbe75f12194f47d7a4f (patch)
tree9477c54180c12ff62d6dafc07fb9b86e06d8e9b1 /drivers/mtd/mtd_blkdevs.c
parentmtd: nand: denali: drop dead code (diff)
downloadlinux-e22b7651ef23ad90eed4bdbe75f12194f47d7a4f.tar.xz
linux-e22b7651ef23ad90eed4bdbe75f12194f47d7a4f.zip
mtd: blkdevs: remove dead code
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>
Diffstat (limited to 'drivers/mtd/mtd_blkdevs.c')
-rw-r--r--drivers/mtd/mtd_blkdevs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index d08229eb44d8..2b0c52870999 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -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);
}