Skip to content

Commit

Permalink
media: i2c: ov2311: Fix uninitialized variable usage
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Winkowski <[email protected]>
  • Loading branch information
dereference23 authored and pelwell committed Aug 10, 2023
1 parent 2dd2f36 commit 3333d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/ov2311.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ static int ov2311_check_sensor_id(struct ov2311 *ov2311,
struct i2c_client *client)
{
struct device *dev = &ov2311->client->dev;
u32 id = 0, id_msb;
u32 id = 0, id_msb = 0;
int ret;

ret = ov2311_read_reg(client, OV2311_REG_CHIP_ID + 1,
Expand Down

0 comments on commit 3333d45

Please sign in to comment.