From: Ebru Akagunduz Date: Thu, 13 Mar 2014 08:34:20 +0000 (+0200) Subject: Staging: bcm: Removed unreachable code line in Bcmchar.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7d057e7d634a7d28b5559f3acd98170bcb7a2c3d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Bob Copeland Signed-off-by: Peter P Waskiewicz Jr --- diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index 075969e46f10..ae7490b4d70e 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/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);