aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-08-30 18:30:43 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-26 10:24:09 +0200
commit274cf92d5dff5c2fec1a518078542ffe70d07646 (patch)
tree03d0cecf7cfb44759fd59a3c8d72cd5b86b12c56 /drivers/media
parentmedia: mtk-mdp: Fix Null pointer dereference when calling list_add (diff)
downloadlinux-dev-274cf92d5dff5c2fec1a518078542ffe70d07646.tar.xz
linux-dev-274cf92d5dff5c2fec1a518078542ffe70d07646.zip
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: 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>
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 a03dcab5ce61..c724bd1591de 100644
--- a/drivers/media/i2c/tc358743.c
+++ b/drivers/media/i2c/tc358743.c
@@ -1461,7 +1461,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);