projects/linux·commit 756fcab2

block/cciss.c: remove pointless curr_queue calculation

756fcab2 · Hannes Reinecke <[email protected]> · 2008-08-05 13:01:08 -07:00

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]>
Commit
756fcab27756f32722b748e2aff3393eef9a589d
Parents
594a8819

Changes

1 files changed · +0 −2

FileStatusAddDelContent
drivers/block/cciss.cmodified+0−2View file

drivers/block/cciss.c

View file
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index d81632c..0ce0c27 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);
}
}
}