提交 756fcab2 编写于 作者: H Hannes Reinecke 提交者: Linus Torvalds

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: NHannes Reinecke <hare@suse.de>
Cc: Mike Miller <mike.miller@hp.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 594a8819
...@@ -1292,8 +1292,6 @@ static void cciss_check_queues(ctlr_info_t *h) ...@@ -1292,8 +1292,6 @@ static void cciss_check_queues(ctlr_info_t *h)
h->next_to_run = curr_queue; h->next_to_run = curr_queue;
break; break;
} }
} else {
curr_queue = (curr_queue + 1) % (h->highest_lun + 1);
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册