From 64f488fb1c536e95414296112cb76cbb72089754 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 23 Jul 2014 13:31:00 +0200 Subject: [PATCH] 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 Signed-off-by: Matthias Beyer Signed-off-by: Greg Kroah-Hartman --- drivers/staging/bcm/nvm.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/bcm/nvm.c b/drivers/staging/bcm/nvm.c index ccf874521121..ce09473fbb1f 100644 --- a/drivers/staging/bcm/nvm.c +++ b/drivers/staging/bcm/nvm.c @@ -1037,9 +1037,9 @@ static int bulk_read_complete_sector(struct bcm_mini_adapter *ad, UCHAR read_bk[], PCHAR tmpbuff, unsigned int offset, - unsigned int partoff, - unsigned int i) + unsigned int partoff) { + unsigned int i; int j; int bulk_read_stat; FP_FLASH_WRITE_STATUS writef = @@ -1213,8 +1213,7 @@ static int BeceemFlashBulkWrite(struct bcm_mini_adapter *Adapter, ucReadBk, pTempBuff, uiOffsetFromSectStart, - uiPartOffset, - uiIndex)) { + uiPartOffset)) { Status = STATUS_FAILURE; goto BeceemFlashBulkWrite_EXIT; } -- 2.39.5