Skip to content

Commit 4377d9a

Browse files
sknseanjic23
authored andcommitted
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: af959b7 ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent e73f0f0 commit 4377d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/accel/fxls8962af-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static int fxls8962af_i2c_raw_read_errata3(struct fxls8962af_data *data,
637637
return ret;
638638
}
639639

640-
return ret;
640+
return 0;
641641
}
642642

643643
static int fxls8962af_fifo_transfer(struct fxls8962af_data *data,

0 commit comments

Comments
 (0)