diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2014-08-27 12:58:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-30 13:01:39 -0700 |
commit | d16c8489c164dad8bd3469aae591bc3db3a8c8c2 (patch) | |
tree | 810dbf368c6841baf9de86ec611bfaf51f1abd39 /drivers/staging/bcm | |
parent | 57240f04343177ae505ec422501f495f367d11a8 (diff) | |
download | talos-obmc-linux-d16c8489c164dad8bd3469aae591bc3db3a8c8c2.tar.gz talos-obmc-linux-d16c8489c164dad8bd3469aae591bc3db3a8c8c2.zip |
Staging: bcm: Bcmchar.c: Renamed variable: "psFlash2xBitMap" -> "flash_2x_bit_map"
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 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index 216d84015c23..81a073f276f4 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -1851,7 +1851,7 @@ static int bcm_char_ioctl_flash2x_section_write(void __user *argp, static int bcm_char_ioctl_flash2x_section_bitmap(void __user *argp, struct bcm_mini_adapter *ad) { - struct bcm_flash2x_bitmap *psFlash2xBitMap; + struct bcm_flash2x_bitmap *flash_2x_bit_map; struct bcm_ioctl_buffer io_buff; BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, @@ -1863,10 +1863,10 @@ BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, if (io_buff.OutputLength != sizeof(struct bcm_flash2x_bitmap)) return -EINVAL; - psFlash2xBitMap = kzalloc(sizeof(struct bcm_flash2x_bitmap), + flash_2x_bit_map = kzalloc(sizeof(struct bcm_flash2x_bitmap), GFP_KERNEL); - if (psFlash2xBitMap == NULL) { + if (flash_2x_bit_map == NULL) { BCM_DEBUG_PRINT(ad, DBG_TYPE_PRINTK, 0, 0, "Memory is not available"); return -ENOMEM; @@ -1882,19 +1882,19 @@ BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "Device is in Idle/Shutdown Mode\n"); up(&ad->NVMRdmWrmLock); - kfree(psFlash2xBitMap); + kfree(flash_2x_bit_map); return -EACCES; } - BcmGetFlash2xSectionalBitMap(ad, psFlash2xBitMap); + BcmGetFlash2xSectionalBitMap(ad, flash_2x_bit_map); up(&ad->NVMRdmWrmLock); - if (copy_to_user(io_buff.OutputBuffer, psFlash2xBitMap, + if (copy_to_user(io_buff.OutputBuffer, flash_2x_bit_map, sizeof(struct bcm_flash2x_bitmap))) { - kfree(psFlash2xBitMap); + kfree(flash_2x_bit_map); return -EFAULT; } - kfree(psFlash2xBitMap); + kfree(flash_2x_bit_map); return STATUS_FAILURE; } |