projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99f6d50
)
mtd: blkdevs: remove dead code
author
Brian Norris
<computersforpeace@gmail.com>
Sat, 28 Feb 2015 10:02:29 +0000
(
02:02
-0800)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtd_blkdevs.c
b/drivers/mtd/mtd_blkdevs.c
index
d08229e
..
2b0c528
100644
(file)
--- 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);
}