diff options
author | Hannes Reinecke <hare@suse.de> | 2008-08-05 16:01:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-05 17:33:46 -0400 |
commit | 756fcab27756f32722b748e2aff3393eef9a589d (patch) | |
tree | 73ab952ebaaa41d22b38f28af5f3f78b5d55e200 | |
parent | 594a8819774b09ee5bf72d23300489459ff1f882 (diff) |
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>
-rw-r--r-- | drivers/block/cciss.c | 2 |
1 files changed, 0 insertions, 2 deletions
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) | |||
1292 | h->next_to_run = curr_queue; | 1292 | h->next_to_run = curr_queue; |
1293 | break; | 1293 | break; |
1294 | } | 1294 | } |
1295 | } else { | ||
1296 | curr_queue = (curr_queue + 1) % (h->highest_lun + 1); | ||
1297 | } | 1295 | } |
1298 | } | 1296 | } |
1299 | } | 1297 | } |