Renamed variable "sWrmBuffer" -> "wrm_buff" in bcm_char_ioctl_reg_write_private() Signed-off-by: Matthias Beyer <mail@xxxxxxxxxxxxxxxx> --- drivers/staging/bcm/Bcmchar.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index f88b4ad..ee53df6 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -297,7 +297,7 @@ static int bcm_char_ioctl_reg_read_private(void __user *argp, static int bcm_char_ioctl_reg_write_private(void __user *argp, struct bcm_mini_adapter *ad) { - struct bcm_wrm_buffer sWrmBuffer = {0}; + struct bcm_wrm_buffer wrm_buff = {0}; struct bcm_ioctl_buffer IoBuffer; UINT uiTempVar = 0; INT Status; @@ -307,15 +307,15 @@ static int bcm_char_ioctl_reg_write_private(void __user *argp, if (copy_from_user(&IoBuffer, argp, sizeof(struct bcm_ioctl_buffer))) return -EFAULT; - if (IoBuffer.InputLength > sizeof(sWrmBuffer)) + if (IoBuffer.InputLength > sizeof(wrm_buff)) return -EINVAL; /* Get WrmBuffer structure */ - if (copy_from_user(&sWrmBuffer, IoBuffer.InputBuffer, + if (copy_from_user(&wrm_buff, IoBuffer.InputBuffer, IoBuffer.InputLength)) return -EFAULT; - uiTempVar = sWrmBuffer.Register & EEPROM_REJECT_MASK; + uiTempVar = wrm_buff.Register & EEPROM_REJECT_MASK; if (!((ad->pstargetparams->m_u32Customize) & VSG_MODE) && ((uiTempVar == EEPROM_REJECT_REG_1) || (uiTempVar == EEPROM_REJECT_REG_2) || @@ -327,8 +327,8 @@ static int bcm_char_ioctl_reg_write_private(void __user *argp, return -EFAULT; } - Status = wrmalt(ad, (UINT)sWrmBuffer.Register, - (PUINT)sWrmBuffer.Data, sizeof(ULONG)); + Status = wrmalt(ad, (UINT)wrm_buff.Register, + (PUINT)wrm_buff.Data, sizeof(ULONG)); if (Status == STATUS_SUCCESS) { BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, -- 2.0.3 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel