struct bcm_mini_adapter *ad)
{
struct bcm_ioctl_buffer io_buff;
- UINT uiSectorSize = 0;
+ UINT sector_size = 0;
INT status = STATUS_FAILURE;
if (ad->eNVMType == NVM_FLASH) {
sizeof(struct bcm_ioctl_buffer)))
return -EFAULT;
- if (copy_from_user(&uiSectorSize, io_buff.InputBuffer,
+ if (copy_from_user(§or_size, io_buff.InputBuffer,
sizeof(UINT)))
return -EFAULT;
- if ((uiSectorSize < MIN_SECTOR_SIZE) ||
- (uiSectorSize > MAX_SECTOR_SIZE)) {
+ if ((sector_size < MIN_SECTOR_SIZE) ||
+ (sector_size > MAX_SECTOR_SIZE)) {
if (copy_to_user(io_buff.OutputBuffer,
&ad->uiSectorSize, sizeof(UINT)))
return -EFAULT;
return -EACCES;
}
- ad->uiSectorSize = uiSectorSize;
+ ad->uiSectorSize = sector_size;
BcmUpdateSectorSize(ad,
ad->uiSectorSize);
}