Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e22b7651 authored by Brian Norris's avatar Brian Norris
Browse files

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: default avatarBrian Norris <computersforpeace@gmail.com>
parent 99f6d50d
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -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);
}
}