提交 e22b7651 编写于 作者: B Brian Norris

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: NBrian Norris <computersforpeace@gmail.com>
上级 99f6d50d
...@@ -171,9 +171,6 @@ static void mtd_blktrans_work(struct work_struct *work) ...@@ -171,9 +171,6 @@ static void mtd_blktrans_work(struct work_struct *work)
background_done = 0; background_done = 0;
} }
if (req)
__blk_end_request_all(req, -EIO);
spin_unlock_irq(rq->queue_lock); spin_unlock_irq(rq->queue_lock);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册