浏览代码

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>
Dmitry Torokhov 11 年之前
父节点
当前提交
60183a6e93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/input/misc/ims-pcu.c

+ 1 - 1
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;
 	pcu->ofn_reg_addr = value;
 	mutex_unlock(&pcu->cmd_mutex);
 	mutex_unlock(&pcu->cmd_mutex);
 
 
-	return error ?: count;
+	return count;
 }
 }
 
 
 static DEVICE_ATTR(reg_addr, S_IRUGO | S_IWUSR,
 static DEVICE_ATTR(reg_addr, S_IRUGO | S_IWUSR,