]> git.baikalelectronics.ru Git - kernel.git/commit
staging: bcm2835-audio: fix empty-body warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 1 Feb 2017 16:22:25 +0000 (17:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Feb 2017 12:01:32 +0000 (13:01 +0100)
commitb3732e6ba5cc4f9e9798e53c7df2f6bdb08e72a2
tree2c5d104bae12b3ca757eed15f20352f33f350a6a
parent77295a68f4eb0a5e1eeef52abc2d47ed922f3adb
staging: bcm2835-audio: fix empty-body warning

gcc-7 warns about debug statements being left out here:

drivers/staging/bcm2835-audio/bcm2835-vchiq.c: In function 'bcm2835_audio_set_ctls':
drivers/staging/bcm2835-audio/bcm2835-vchiq.c:572:54: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]

It's better to use no_printk(), which has the added advantage of checking
the format strings.

Fixes: a60b4a0060c1 ("staging: bcm2835-audio: initial staging submission")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm2835-audio/bcm2835-vchiq.c