Staging: bcm: nvm.c: Don't pass the index
authorMatthias Beyer <mail@beyermatthias.de>
Wed, 23 Jul 2014 11:31:00 +0000 (13:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2014 01:34:27 +0000 (18:34 -0700)
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>
drivers/staging/bcm/nvm.c

index ccf8745..ce09473 100644 (file)
@@ -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;
                }