diff options
author | Hannes Reinecke <hare@suse.de> | 2008-08-05 22:01:08 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-05 23:33:46 +0200 |
commit | 756fcab27756f32722b748e2aff3393eef9a589d (patch) | |
tree | 73ab952ebaaa41d22b38f28af5f3f78b5d55e200 /drivers/block/cciss.c | |
parent | vt8623fb: fix kernel oops (diff) | |
download | linux-756fcab27756f32722b748e2aff3393eef9a589d.tar.xz linux-756fcab27756f32722b748e2aff3393eef9a589d.zip |
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>
Diffstat (limited to '')
-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) h->next_to_run = curr_queue; break; } - } else { - curr_queue = (curr_queue + 1) % (h->highest_lun + 1); } } } |