Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cciss: fix shadows sparse warning

Fix sparse warnings:

drivers/block/cciss.c:1591:37: warning: symbol 'i' shadows an earlier one
drivers/block/cciss.c:2437:21: warning: symbol 'i' shadows an earlier one

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Acked-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Bill Pemberton and committed by
Jiri Kosina
c2d45b4d ca0dbd86

+1 -2
+1 -2
drivers/block/cciss.c
··· 1588 1588 1589 1589 c->Request = ioc->Request; 1590 1590 if (ioc->buf_size > 0) { 1591 - int i; 1592 1591 for (i = 0; i < sg_used; i++) { 1593 1592 temp64.val = 1594 1593 pci_map_single(host->pdev, buff[i], ··· 2433 2434 2434 2435 /* if it was the last disk, find the new hightest lun */ 2435 2436 if (clear_all && recalculate_highest_lun) { 2436 - int i, newhighest = -1; 2437 + int newhighest = -1; 2437 2438 for (i = 0; i <= h->highest_lun; i++) { 2438 2439 /* if the disk has size > 0, it is available */ 2439 2440 if (h->drv[i] && h->drv[i]->heads)