summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/rainshadow-cec
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-05-19 19:45:15 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-04 20:23:32 +0200
commitca33784ba4949856a94a545c91429aae5c8b658d (patch)
tree938cc6d302211ac53b4b5b0150dbe5c589fc0b2e /drivers/media/usb/rainshadow-cec
parent[media] atomisp: don't treat warnings as errors (diff)
downloadlinux-ca33784ba4949856a94a545c91429aae5c8b658d.tar.xz
linux-ca33784ba4949856a94a545c91429aae5c8b658d.zip
[media] rainshadow-cec: ensure exit_loop is intialized
exit_loop is not being initialized, so it contains garbage. Ensure it is initialized to false. Detected by CoverityScan, CID#1436409 ("Uninitialized scalar variable") Fixes: ea6a69defd3311 ("[media] rainshadow-cec: avoid -Wmaybe-uninitialized warning") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/rainshadow-cec')
-rw-r--r--drivers/media/usb/rainshadow-cec/rainshadow-cec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/rainshadow-cec/rainshadow-cec.c b/drivers/media/usb/rainshadow-cec/rainshadow-cec.c
index 541ca543f71f..71bd68548c9c 100644
--- a/drivers/media/usb/rainshadow-cec/rainshadow-cec.c
+++ b/drivers/media/usb/rainshadow-cec/rainshadow-cec.c
@@ -119,7 +119,7 @@ static void rain_irq_work_handler(struct work_struct *work)
while (true) {
unsigned long flags;
- bool exit_loop;
+ bool exit_loop = false;
char data;
spin_lock_irqsave(&rain->buf_lock, flags);