diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2014-08-27 14:57:53 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-31 00:01:38 +0400 |
commit | 70edad0eaa2517d30823f2fde577b67a0445b0a4 (patch) | |
tree | 8d45cc0013917100cb5f3975d4034e5df663de35 /drivers/staging/bcm | |
parent | db1f4df0b3a298ce10e9b8f2a066d43844f3f373 (diff) | |
download | linux-70edad0eaa2517d30823f2fde577b67a0445b0a4.tar.xz |
Staging: bcm: Bcmchar.c: Renamed variable: "uiSectorSize" -> "sector_size"
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/bcm')
-rw-r--r-- | drivers/staging/bcm/Bcmchar.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index 5f20b03753d8..7018d965f203 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); } |