From: Dmitry Torokhov Date: Fri, 24 Oct 2014 22:10:47 +0000 (-0700) Subject: Input: ims-pcu - fix dead code in ims_pcu_ofn_reg_addr_store() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=60183a6e93ac62727161d1a94abd80e2d7d901d0;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Input: ims-pcu - fix dead code in ims_pcu_ofn_reg_addr_store() Coverity pointed out that at return point error is always 0 so the conditional is not needed. Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/ims-pcu.c b/drivers/input/misc/ims-pcu.c index 719410feb84b..afed8e2b2f94 100644 --- a/drivers/input/misc/ims-pcu.c +++ b/drivers/input/misc/ims-pcu.c @@ -1381,7 +1381,7 @@ static ssize_t ims_pcu_ofn_reg_addr_store(struct device *dev, pcu->ofn_reg_addr = value; mutex_unlock(&pcu->cmd_mutex); - return error ?: count; + return count; } static DEVICE_ATTR(reg_addr, S_IRUGO | S_IWUSR,