diff options
-rw-r--r-- | drivers/staging/bcm/Bcmchar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index 810e174bcb2e..dea2cce3abae 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -1121,10 +1121,10 @@ static int bcm_char_ioctl_buffer_download_stop(void __user *argp, static int bcm_char_ioctl_chip_reset(struct bcm_mini_adapter *ad) { INT status; - INT NVMAccess; + INT nvm_access; - NVMAccess = down_trylock(&ad->NVMRdmWrmLock); - if (NVMAccess) { + nvm_access = down_trylock(&ad->NVMRdmWrmLock); + if (nvm_access) { BCM_DEBUG_PRINT(ad, DBG_TYPE_PRINTK, 0, 0, " IOCTL_BCM_CHIP_RESET not allowed as EEPROM Read/Write is in progress\n"); return -EACCES; |