From: Brian Norris Date: Sat, 28 Feb 2015 10:02:29 +0000 (-0800) Subject: mtd: blkdevs: remove dead code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e22b7651ef23ad90eed4bdbe75f12194f47d7a4f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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); }