Staging: bcm: nvm.c: Don't pass the index

The variable 'i' does not need to be passed, as we set it to 0 (zero)
anyways when starting the iteration here.

Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Matthias Beyer 2014-07-23 13:31:00 +02:00 committed by Greg Kroah-Hartman
parent 897a88d946
commit 64f488fb1c

View File

@ -1037,9 +1037,9 @@ static int bulk_read_complete_sector(struct bcm_mini_adapter *ad,
UCHAR read_bk[], UCHAR read_bk[],
PCHAR tmpbuff, PCHAR tmpbuff,
unsigned int offset, unsigned int offset,
unsigned int partoff, unsigned int partoff)
unsigned int i)
{ {
unsigned int i;
int j; int j;
int bulk_read_stat; int bulk_read_stat;
FP_FLASH_WRITE_STATUS writef = FP_FLASH_WRITE_STATUS writef =
@ -1213,8 +1213,7 @@ static int BeceemFlashBulkWrite(struct bcm_mini_adapter *Adapter,
ucReadBk, ucReadBk,
pTempBuff, pTempBuff,
uiOffsetFromSectStart, uiOffsetFromSectStart,
uiPartOffset, uiPartOffset)) {
uiIndex)) {
Status = STATUS_FAILURE; Status = STATUS_FAILURE;
goto BeceemFlashBulkWrite_EXIT; goto BeceemFlashBulkWrite_EXIT;
} }