Skip to content

Commit

Permalink
cciss: fix shadows sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bill Pemberton authored and Jiri Kosina committed May 11, 2010
1 parent ca0dbd8 commit c2d45b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,6 @@ static int cciss_ioctl(struct block_device *bdev, fmode_t mode,

c->Request = ioc->Request;
if (ioc->buf_size > 0) {
int i;
for (i = 0; i < sg_used; i++) {
temp64.val =
pci_map_single(host->pdev, buff[i],
Expand Down Expand Up @@ -2434,7 +2433,7 @@ static int deregister_disk(ctlr_info_t *h, int drv_index,

/* if it was the last disk, find the new hightest lun */
if (clear_all && recalculate_highest_lun) {
int i, newhighest = -1;
int newhighest = -1;
for (i = 0; i <= h->highest_lun; i++) {
/* if the disk has size > 0, it is available */
if (h->drv[i] && h->drv[i]->heads)
Expand Down

0 comments on commit c2d45b4

Please sign in to comment.