diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2022-11-18 07:38:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-22 18:22:05 +0100 |
commit | 022b68f271de0e53024e6d5e96fee8e76d25eb95 (patch) | |
tree | f912fa1e0efa187da5eeb02ee1c50588dcb390f2 /lib/ashldi3.c | |
parent | nvmem: rmem: Fix return value check in rmem_read() (diff) | |
download | linux-022b68f271de0e53024e6d5e96fee8e76d25eb95.tar.xz linux-022b68f271de0e53024e6d5e96fee8e76d25eb95.zip |
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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20221118063840.6357-5-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/ashldi3.c')
0 files changed, 0 insertions, 0 deletions