Skip to content

Commit 022b68f

Browse files
HoratiuVulturgregkh
authored andcommitted
nvmem: lan9662-otp: Change return type of lan9662_otp_wait_flag_clear()
The blamed commit introduced the following smatch warning in the function lan9662_otp_wait_flag_clear: drivers/nvmem/lan9662-otpc.c:43 lan9662_otp_wait_flag_clear() warn: signedness bug returning '(-110)' Fix this by changing the return type of the function lan9662_otp_wait_flag_clear() to be int instead of bool. Fixes: 9e8f208 ("nvmem: lan9662-otp: add support") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Horatiu Vultur <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 58e92c4 commit 022b68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvmem/lan9662-otpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct lan9662_otp {
3636
void __iomem *base;
3737
};
3838

39-
static bool lan9662_otp_wait_flag_clear(void __iomem *reg, u32 flag)
39+
static int lan9662_otp_wait_flag_clear(void __iomem *reg, u32 flag)
4040
{
4141
u32 val;
4242

0 commit comments

Comments
 (0)