From 70edad0eaa2517d30823f2fde577b67a0445b0a4 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 27 Aug 2014 12:57:53 +0200 Subject: [PATCH] Staging: bcm: Bcmchar.c: Renamed variable: "uiSectorSize" -> "sector_size" Signed-off-by: Matthias Beyer Signed-off-by: Greg Kroah-Hartman --- 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 5f20b03..7018d96 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.7.4