Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <hare@suse.de>
Cc: Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Hannes Reinecke and committed by
Linus Torvalds
756fcab2 594a8819

-2
-2
drivers/block/cciss.c
··· 1292 1292 h->next_to_run = curr_queue; 1293 1293 break; 1294 1294 } 1295 - } else { 1296 - curr_queue = (curr_queue + 1) % (h->highest_lun + 1); 1297 1295 } 1298 1296 } 1299 1297 }