Skip to content

Commit

Permalink
mtd: blkdevs: remove dead code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian Norris committed Mar 11, 2015
1 parent 99f6d50 commit e22b765
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/mtd/mtd_blkdevs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e22b765

Please sign in to comment.