summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-08-30 19:30:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-29 11:05:33 +0300
commit59409de85b513627ee4d8efa4aa7214cea1d2607 (patch)
treed507271e1a087815e4df2b3343cd91b09a7ddf84 /drivers/media
parenta966fded908b3c87b7074eb81108acda32e78ad5 (diff)
downloadlinux-59409de85b513627ee4d8efa4aa7214cea1d2607.tar.xz
media: tc358743: initialize variable
[ Upstream commit 274cf92d5dff5c2fec1a518078542ffe70d07646 ] 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: d747b806abf4 ("[media] tc358743: add direct interrupt handling") Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/i2c/tc358743.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c
index 7ebcb9473956..3e47b432d0f4 100644
--- a/drivers/media/i2c/tc358743.c
+++ b/drivers/media/i2c/tc358743.c
@@ -1321,7 +1321,7 @@ static int tc358743_isr(struct v4l2_subdev *sd, u32 status, bool *handled)
static irqreturn_t tc358743_irq_handler(int irq, void *dev_id)
{
struct tc358743_state *state = dev_id;
- bool handled;
+ bool handled = false;
tc358743_isr(&state->sd, 0, &handled);