block/cciss.c: remove pointless curr_queue calculation
authorHannes Reinecke <[email protected]>
Tue, 5 Aug 2008 20:01:08 +0000 (13:01 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: Mike Miller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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);
                }
        }
 }