block/cciss.c: remove pointless curr_queue calculation
authorHannes Reinecke <hare@suse.de>
Tue, 5 Aug 2008 20:01:08 +0000 (13:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 5 Aug 2008 21:33:46 +0000 (14:33 -0700)
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>
drivers/block/cciss.c

index d81632cd7d062fd01bb2e2987dd8095b567c1e87..0ce0c279aabf4bce78463537be4fe37325b91810 100644 (file)
@@ -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);
                }
        }
 }