Skip to contentSkip to conversation

iio: accel: fxls8962af: fix potential use of uninitialized symbol

PATCH Superseded Sean Nyekjaer 2 participants 2 messages Jun 23, 2021 – Jul 18, 2021 IIO

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: accel: fxls8962af: fix potential use of uninitialized symbol

Fixes af959b7b96b8 ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads")
---
 drivers/iio/accel/fxls8962af-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/accel/fxls8962af-core.c +1 -1
index 078d87865fde..0019f1ea7df2 100644
@@ -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
maintainer
#1 lore raw
Quoted 4 lines · On Wed, 23 Jun 2021 13:31:15 +0200 Sean Nyekjaer <[email protected]> wrote:
Fixes af959b7b96b8 ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads")

Oops. Seems I applied this but didn't reply here to say I'd done so.

Thanks,

Jonathan

Quoted 17 lines
---
 drivers/iio/accel/fxls8962af-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/accel/fxls8962af-core.c +1 -1
index 078d87865fde..0019f1ea7df2 100644
@@ -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,