block: clean up dead code that is now redundant
authorColin Ian King <colin.king@canonical.com>
Wed, 14 Nov 2018 22:17:05 +0000 (22:17 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 14 Nov 2018 22:21:25 +0000 (15:21 -0700)
commit98c98cb770da9469ee868f21299b2ba21fe438ac
treee66d66d22708c1f351364140bda4650daaadaa8a
parent30e066286e232772cad72c87008a958e23e40a33
block: clean up dead code that is now redundant

The boolean next_sorted is set to false and is never changed, hence
the code that checks if it is true is dead code and can now be
removed.  This dead code occurred from a previous commit that cleaned
up the elevator and removed the setting of next_sorted to true.

Detected by CoverityScan, CID#1475401 ("'Constant' variable guards
dead code")

Fixes: a1ce35fa4985 ("block: remove dead elevator code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/elevator.c