Skip to content

Commit

Permalink
Input: ims-pcu - fix dead code in ims_pcu_ofn_reg_addr_store()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov committed Oct 28, 2014
1 parent 42b63e6 commit 60183a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/misc/ims-pcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 60183a6

Please sign in to comment.