Signed-off-by: Matthias Beyer <mail@xxxxxxxxxxxxxxxx> --- drivers/staging/bcm/Bcmchar.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index 4e923f6..243933a 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -1400,7 +1400,7 @@ static int bcm_char_ioctl_cal_init(void __user *argp, 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) { @@ -1408,12 +1408,12 @@ static int bcm_char_ioctl_cal_init(void __user *argp, 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; @@ -1431,7 +1431,7 @@ static int bcm_char_ioctl_cal_init(void __user *argp, return -EACCES; } - ad->uiSectorSize = uiSectorSize; + ad->uiSectorSize = sector_size; BcmUpdateSectorSize(ad, ad->uiSectorSize); } -- 2.1.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel