mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 13:27:57 +02:00
media: i2c: ds90ub960: Fix uninitialized variable in ub960_serializer_temp_ramp()
The "ret" variable is not initialized on the success path.
Fixes: a057447496 ("media: i2c: ds90ub9xx: Set serializer temperature ramp")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
parent
3a9619be0d
commit
d97dfb6c3f
|
|
@ -2051,7 +2051,7 @@ static int ub960_serializer_temp_ramp(struct ub960_rxport *rxport)
|
|||
u8 temp_dynamic_cfg;
|
||||
u8 nport = rxport->nport;
|
||||
u8 ser_temp_code;
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
/* Configure temp ramp only on UB953 */
|
||||
if (!fwnode_device_is_compatible(rxport->ser.fwnode, "ti,ds90ub953-q1"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user