浏览代码

Staging: bcm: Removed unreachable code line in Bcmchar.c

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>
Ebru Akagunduz 11 年之前
父节点
当前提交
7d057e7d63
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/staging/bcm/Bcmchar.c

+ 1 - 3
drivers/staging/bcm/Bcmchar.c

@@ -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);