Skip to content
Commit 1a5cba43 authored by Mudit Sharma's avatar Mudit Sharma Committed by Jonathan Cameron
Browse files

iio: light: apds9306: Fix error handing



The return value of 'iio_gts_find_int_time_by_sel()' is assigned to
variable 'intg_old' but value of 'ret' is checked for error. Update to
use 'intg_old' for error checking.

Fixes: 620d1e6c ("iio: light: Add support for APDS9306 Light Sensor")
Signed-off-by: default avatarMudit Sharma <muditsharma.info@gmail.com>
Reviewed-by: default avatarSubhajit Ghosh <subhajit.ghosh@tweaklogic.com>
Link: https://patch.msgid.link/20240625210203.522179-1-muditsharma.info@gmail.com


Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 74cb2157
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment