summaryrefslogtreecommitdiffstats
path: root/drivers/block/cciss.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2008-08-05 22:01:08 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-08-05 23:33:46 +0200
commit756fcab27756f32722b748e2aff3393eef9a589d (patch)
tree73ab952ebaaa41d22b38f28af5f3f78b5d55e200 /drivers/block/cciss.c
parentvt8623fb: fix kernel oops (diff)
downloadlinux-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.c2
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);
}
}
}