Explorar o código

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>
Hannes Reinecke %!s(int64=16) %!d(string=hai) anos
pai
achega
756fcab277
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      drivers/block/cciss.c

+ 0 - 2
drivers/block/cciss.c

@@ -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);
 		}
 		}
 	}
 	}
 }
 }