Re: [PATCH] input: sentelic: fix error return when fsp_reg_write fails

From
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date
2020-08-06 22:36:26
Also in
kernel-janitors, lkml
Reply to
Colin King, 2020-06-03
On Wed, Jun 03, 2020 at 03:12:18PM +0100, Colin King wrote:
From: Colin Ian King <redacted>

Currently when the call to fsp_reg_write fails -EIO is not being returned
because the count is being returned instead of the return value in retval.
Fix this by returning the value in retval instead of count.

Addresses-Coverity: ("Unused value")
Fixes: fc69f4a6af49 ("Input: add new driver for Sentelic Finger Sensing Pad")
Signed-off-by: Colin Ian King <redacted>
Applied, thank you.

-- 
Dmitry
Thread (2 messages) 2 messages, 2 authors, last reply 2020-08-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help