Skip to content

Commit 3333d45

Browse files
dereference23pelwell
authored andcommitted
media: i2c: ov2311: Fix uninitialized variable usage
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
1 parent 2dd2f36 commit 3333d45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/i2c/ov2311.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ static int ov2311_check_sensor_id(struct ov2311 *ov2311,
10181018
struct i2c_client *client)
10191019
{
10201020
struct device *dev = &ov2311->client->dev;
1021-
u32 id = 0, id_msb;
1021+
u32 id = 0, id_msb = 0;
10221022
int ret;
10231023

10241024
ret = ov2311_read_reg(client, OV2311_REG_CHIP_ID + 1,

0 commit comments

Comments
 (0)