]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: bcm: Bcmchar.c: Renamed variable: "DevInfo" -> "dev_info"
authorMatthias Beyer <mail@beyermatthias.de>
Wed, 27 Aug 2014 10:58:12 +0000 (12:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:01:39 +0000 (13:01 -0700)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/Bcmchar.c

index 50649de7a2ddcaefee8aa31f518756bcf011e786..bffbfd5aa81295db87d650087ee6d66ed3198426 100644 (file)
@@ -2296,26 +2296,26 @@ static int bcm_char_ioctl_cntrlmsg_mask(void __user *argp,
 static int bcm_char_ioctl_get_device_driver_info(void __user *argp,
        struct bcm_mini_adapter *ad)
 {
-       struct bcm_driver_info DevInfo;
+       struct bcm_driver_info dev_info;
        struct bcm_ioctl_buffer io_buff;
 
        BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL,
                        "Called IOCTL_BCM_GET_DEVICE_DRIVER_INFO\n");
 
-       memset(&DevInfo, 0, sizeof(DevInfo));
-       DevInfo.MaxRDMBufferSize = BUFFER_4K;
-       DevInfo.u32DSDStartOffset = EEPROM_CALPARAM_START;
-       DevInfo.u32RxAlignmentCorrection = 0;
-       DevInfo.u32NVMType = ad->eNVMType;
-       DevInfo.u32InterfaceType = BCM_USB;
+       memset(&dev_info, 0, sizeof(dev_info));
+       dev_info.MaxRDMBufferSize = BUFFER_4K;
+       dev_info.u32DSDStartOffset = EEPROM_CALPARAM_START;
+       dev_info.u32RxAlignmentCorrection = 0;
+       dev_info.u32NVMType = ad->eNVMType;
+       dev_info.u32InterfaceType = BCM_USB;
 
        if (copy_from_user(&io_buff, argp, sizeof(struct bcm_ioctl_buffer)))
                return -EFAULT;
 
-       if (io_buff.OutputLength < sizeof(DevInfo))
+       if (io_buff.OutputLength < sizeof(dev_info))
                return -EINVAL;
 
-       if (copy_to_user(io_buff.OutputBuffer, &DevInfo, sizeof(DevInfo)))
+       if (copy_to_user(io_buff.OutputBuffer, &dev_info, sizeof(dev_info)))
                return -EFAULT;
 
        return STATUS_SUCCESS;