Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d057e7d authored by Ebru Akagunduz's avatar Ebru Akagunduz Committed by Peter P Waskiewicz Jr
Browse files

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



This patch removes unreachable code line and
unnecessary braces in Bcmchar.c

Signed-off-by: default avatarEbru Akagunduz <ebru.akagunduz@gmail.com>
Acked-by: default avatarBob Copeland <me@bobcopeland.com>
Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
parent 18e26b35
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);