summaryrefslogtreecommitdiff
path: root/drivers/media/radio/radio-wl1273.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-06-22 01:10:32 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-24 15:37:28 +0300
commit0a0c1b823cbc0b72eb6e0c2cfe5704cf80fe842d (patch)
tree9638b75e9ffd4d01b488aa9b14d90bcefb927853 /drivers/media/radio/radio-wl1273.c
parent7ee88f8c6b0ce92c652cad7331e09c0ce8a9239b (diff)
downloadlinux-0a0c1b823cbc0b72eb6e0c2cfe5704cf80fe842d.tar.xz
media: rainshadow-cec: avoid -Wmaybe-uninitialized warning again
Back in April I created a patch to address a false-positive warning: drivers/media/usb/rainshadow-cec/rainshadow-cec.c: In function 'rain_irq_work_handler': drivers/media/usb/rainshadow-cec/rainshadow-cec.c:171:31: error: 'data' may be used uninitialized in this function [-Werror=maybe-uninitialized] My patch was totally wrong and introduced a real bug, and Colin Ian King thankfully noticed it now and fixed my mistake. Unfortunately, fixing the actual uninitialized data in this case brought back the original bogus warning. This is a new version of the patch, which simplifies the code to the point where gcc notices the behavior is correct. Fixes: ca33784ba494 ("[media] rainshadow-cec: ensure exit_loop is intialized") Fixes: ea6a69defd3311 ("[media] rainshadow-cec: avoid -Wmaybe-uninitialized warning") Cc: Colin Ian King <colin.king@canonical.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/radio/radio-wl1273.c')
0 files changed, 0 insertions, 0 deletions