diff options
author | Colin Ian King <[email protected]> | 2021-08-17 18:21:11 +0100 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2021-09-14 12:02:09 +0100 |
commit | 9909a395e9807aa79145c9289d0c13d0133359a2 (patch) | |
tree | 35e99219f5193836d5991791ae8b0b0e71aa4403 /scripts/gdb/linux/utils.py | |
parent | 9033c7a357481fb5bcc1737bafa4aec572dca5c6 (diff) |
iio: adc: rzg2l_adc: Fix -EBUSY timeout error return
Currently when a timeout occurs in rzg2l_adc_hw_init the error -EBUSY is
assigned to ret but the error code is used as the function is hard-coded
to return 0. The variable ret is 0 before entering the while-loop hence
the fix is just to return ret at the end of the function to return the
success 0 or -EBUSY return code.
Addresses-Coverity: ("Unused value")
Fixes: d484c21bacfa ("iio: adc: Add driver for Renesas RZ/G2L A/D converter")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Lad Prabhakar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions