mtd: blkdevs: remove dead code

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Apr 22 10:59:04 PDT 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=e22b7651ef23ad90eed4bdbe75f12194f47d7a4f
Commit:     e22b7651ef23ad90eed4bdbe75f12194f47d7a4f
Parent:     99f6d50dc81ef713f64abbb5ec6b94167203d8c5
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Sat Feb 28 02:02:29 2015 -0800
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Mar 11 15:21:48 2015 -0700

    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 at gmail.com>
---
 drivers/mtd/mtd_blkdevs.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index d08229e..2b0c5287 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);
 }
 



More information about the linux-mtd-cvs mailing list