iio: accel: fxls8962af: fix potential use of uninitialized symbol
PATCH v2 1/1 iio: accel: fxls8962af: fix potential use of uninitialized symbol
Fix this warning from kernel test robot:
smatch warnings:drivers/iio/accel/fxls8962af-core.c:640 fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret'.
Reported-by kernel test robot <[email protected]>
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Sean Nyekjaer <[email protected]>
Fixes af959b7b96b8 ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads")
---
Changes since v2:
- add commit msg
drivers/iio/accel/fxls8962af-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/accel/fxls8962af-core.c +1 -1
@@ -637,7 +637,7 @@ static int fxls8962af_i2c_raw_read_errata3(struct fxls8962af_data *data,return ret; } -return ret; +return 0 ; } static int fxls8962af_fifo_transfer(struct fxls8962af_data *data,
Signature · 1 line
2.31.0
Quoted 9 lines · On Fri, 9 Jul 2021 09:17:27 +0200 Sean Nyekjaer <[email protected]> wrote:
Fix this warning from kernel test robot:
smatch warnings:drivers/iio/accel/fxls8962af-core.c:640fxls8962af_i2c_raw_read_errata3()error: uninitialized symbol 'ret'.Reported-by kernel test robot <[email protected]>Reported-by Dan Carpenter <[email protected]>Signed-off-by Sean Nyekjaer <[email protected]>Fixes af959b7b96b8 ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads")
Applied to the fixes-togreg branch of iio.git
Thanks,
Jonathan
Quoted 20 lines
---
Changes since v2:
- add commit msgdrivers/iio/accel/fxls8962af-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/accel/fxls8962af-core.c +1
-1@@ -637,7 +637,7 @@ static int fxls8962af_i2c_raw_read_errata3(struct fxls8962af_data *data,return ret; } -return ret; +return 0 ; } static int fxls8962af_fifo_transfer(struct fxls8962af_data *data,