aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoratiu Vultur <[email protected]>2022-11-18 06:38:40 +0000
committerGreg Kroah-Hartman <[email protected]>2022-11-22 18:22:05 +0100
commit022b68f271de0e53024e6d5e96fee8e76d25eb95 (patch)
treef912fa1e0efa187da5eeb02ee1c50588dcb390f2
parent58e92c4a496b27156020a59a98c7f4a92c2b1533 (diff)
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: 9e8f208ad5229d ("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]>
-rw-r--r--drivers/nvmem/lan9662-otpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvmem/lan9662-otpc.c b/drivers/nvmem/lan9662-otpc.c
index 377bf34c2946..56fc19f092a7 100644
--- a/drivers/nvmem/lan9662-otpc.c
+++ b/drivers/nvmem/lan9662-otpc.c
@@ -36,7 +36,7 @@ struct lan9662_otp {
void __iomem *base;
};
-static bool lan9662_otp_wait_flag_clear(void __iomem *reg, u32 flag)
+static int lan9662_otp_wait_flag_clear(void __iomem *reg, u32 flag)
{
u32 val;