From: Hannes Reinecke Date: Tue, 5 Aug 2008 20:01:08 +0000 (-0700) Subject: block/cciss.c: remove pointless curr_queue calculation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=756fcab27756f32722b748e2aff3393eef9a589d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git block/cciss.c: remove pointless curr_queue calculation curr_queue is a local variable in a for loop, and it's being initialized at the start of each loop. So any assignment at the end of the loop is pointless. Signed-off-by: Hannes Reinecke Cc: Mike Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index d81632cd7d06..0ce0c279aabf 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -1292,8 +1292,6 @@ static void cciss_check_queues(ctlr_info_t *h) h->next_to_run = curr_queue; break; } - } else { - curr_queue = (curr_queue + 1) % (h->highest_lun + 1); } } }