Skip to content

Commit 274cf92

Browse files
Tom Rixmchehab
authored andcommitted
media: tc358743: initialize variable
clang static analysis flags this error tc358743.c:1468:9: warning: Branch condition evaluates to a garbage value return handled ? IRQ_HANDLED : IRQ_NONE; ^~~~~~~ handled should be initialized to false. Fixes: d747b80 ("[media] tc358743: add direct interrupt handling") Signed-off-by: Tom Rix <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 0ca9454 commit 274cf92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/i2c/tc358743.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ static int tc358743_isr(struct v4l2_subdev *sd, u32 status, bool *handled)
14611461
static irqreturn_t tc358743_irq_handler(int irq, void *dev_id)
14621462
{
14631463
struct tc358743_state *state = dev_id;
1464-
bool handled;
1464+
bool handled = false;
14651465

14661466
tc358743_isr(&state->sd, 0, &handled);
14671467

0 commit comments

Comments
 (0)