void __user *input_addr;
UINT NOB = 0;
UINT buff_size = 0;
- UINT WriteOffset = 0;
+ UINT write_off = 0;
UINT write_bytes = 0;
INT status = STATUS_FAILURE;
return STATUS_FAILURE;
input_addr = sFlash2xWrite.pDataBuff;
- WriteOffset = sFlash2xWrite.offset;
+ write_off = sFlash2xWrite.offset;
NOB = sFlash2xWrite.numOfBytes;
if (NOB > ad->uiSectorSize)
/* extracting the remainder of the given offset. */
write_bytes = ad->uiSectorSize;
- if (WriteOffset % ad->uiSectorSize) {
+ if (write_off % ad->uiSectorSize) {
write_bytes = ad->uiSectorSize -
- (WriteOffset % ad->uiSectorSize);
+ (write_off % ad->uiSectorSize);
}
if (NOB < write_bytes)
/* Writing the data from Flash 2.x */
status = BcmFlash2xBulkWrite(ad, (PUINT)write_buff,
sFlash2xWrite.Section,
- WriteOffset,
+ write_off,
write_bytes,
sFlash2xWrite.bVerify);
NOB = NOB - write_bytes;
if (NOB) {
- WriteOffset = WriteOffset + write_bytes;
+ write_off = write_off + write_bytes;
input_addr = input_addr + write_bytes;
if (NOB > ad->uiSectorSize)
write_bytes = ad->uiSectorSize;