Commit ca33784b authored by Colin Ian King's avatar Colin Ian King Committed by Mauro Carvalho Chehab

[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: ea6a69de ("[media] rainshadow-cec: avoid -Wmaybe-uninitialized warning")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent f224c576
...@@ -119,7 +119,7 @@ static void rain_irq_work_handler(struct work_struct *work) ...@@ -119,7 +119,7 @@ static void rain_irq_work_handler(struct work_struct *work)
while (true) { while (true) {
unsigned long flags; unsigned long flags;
bool exit_loop; bool exit_loop = false;
char data; char data;
spin_lock_irqsave(&rain->buf_lock, flags); spin_lock_irqsave(&rain->buf_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment