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

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>

authored by

Matthias Beyer and committed by
Greg Kroah-Hartman
64f488fb 897a88d9

+3 -4
+3 -4
drivers/staging/bcm/nvm.c
··· 1037 1037 UCHAR read_bk[], 1038 1038 PCHAR tmpbuff, 1039 1039 unsigned int offset, 1040 - unsigned int partoff, 1041 - unsigned int i) 1040 + unsigned int partoff) 1042 1041 { 1042 + unsigned int i; 1043 1043 int j; 1044 1044 int bulk_read_stat; 1045 1045 FP_FLASH_WRITE_STATUS writef = ··· 1213 1213 ucReadBk, 1214 1214 pTempBuff, 1215 1215 uiOffsetFromSectStart, 1216 - uiPartOffset, 1217 - uiIndex)) { 1216 + uiPartOffset)) { 1218 1217 Status = STATUS_FAILURE; 1219 1218 goto BeceemFlashBulkWrite_EXIT; 1220 1219 }