Staging: bcm: Removed unreachable code line in Bcmchar.c
authorEbru Akagunduz <ebru.akagunduz@gmail.com>
Thu, 13 Mar 2014 08:34:20 +0000 (10:34 +0200)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Mon, 17 Mar 2014 03:37:39 +0000 (20:37 -0700)
This patch removes unreachable code line and
unnecessary braces in Bcmchar.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Acked-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/bcm/Bcmchar.c

index 075969e46f1074a3a1733df007176ad0e8ff17c1..ae7490b4d70edbcfe107105b3dab20b4bf8a2385 100644 (file)
@@ -1428,10 +1428,8 @@ static int bcm_char_ioctl_nvm_rw(void __user *argp,
                return STATUS_FAILURE;
 
        if (stNVMReadWrite.uiOffset >
-               Adapter->uiNVMDSDSize - stNVMReadWrite.uiNumBytes) {
-               /* BCM_DEBUG_PRINT(Adapter,DBG_TYPE_PRINTK, 0, 0,"Can't allow access beyond NVM Size: 0x%x 0x%x\n", stNVMReadWrite.uiOffset, stNVMReadWrite.uiNumBytes); */
+               Adapter->uiNVMDSDSize - stNVMReadWrite.uiNumBytes)
                return STATUS_FAILURE;
-       }
 
        pReadData = memdup_user(stNVMReadWrite.pBuffer,
                                stNVMReadWrite.uiNumBytes);