summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2014-10-24 15:10:47 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-10-28 10:33:36 -0700
commit60183a6e93ac62727161d1a94abd80e2d7d901d0 (patch)
treed5f63d67b87642667a66474aa8d749072cf5a101 /drivers/input/misc
parent42b63e603e69e1a27da80dda28b18f171aac49d1 (diff)
downloadop-kernel-dev-60183a6e93ac62727161d1a94abd80e2d7d901d0.zip
op-kernel-dev-60183a6e93ac62727161d1a94abd80e2d7d901d0.tar.gz
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 <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r--drivers/input/misc/ims-pcu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/ims-pcu.c b/drivers/input/misc/ims-pcu.c
index 719410f..afed8e2 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,
OpenPOWER on IntegriCloud