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 popcornmix committed Sep 25, 2023
1 parent 9458ca4 commit 48cedde
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 48cedde

Please sign in to comment.