summaryrefslogtreecommitdiff
path: root/crypto/anubis.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-04-21 13:51:21 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-05-18 13:28:38 +0300
commitea6a69defd3311014d8a0ea89245410593c8d00c (patch)
treee366ccb402428c2a654fb0789d17fcc52b28434d /crypto/anubis.c
parent5c621744b4270976f2dba71c49d92883afaf1604 (diff)
downloadlinux-ea6a69defd3311014d8a0ea89245410593c8d00c.tar.xz
[media] rainshadow-cec: avoid -Wmaybe-uninitialized warning
The barrier implied by spin_unlock() in rain_irq_work_handler makes it hard for gcc to figure out the state of the variables, leading to 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] Slightly rearranging the code makes it easier for the compiler to see that the code is correct, and gets rid of the warning. Fixes: 0f314f6c2e77 ("[media] rainshadow-cec: new RainShadow Tech HDMI CEC driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'crypto/anubis.c')
0 files changed, 0 insertions, 0 deletions