summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-03-22 13:43:34 +0300
committerKalle Valo <kvalo@codeaurora.org>2021-04-17 21:01:17 +0300
commit01414f8882f944fe106a52a6d4c2ae8869822195 (patch)
tree783b7d74a4cd2977e0d811478d794e0536d5ce62 /drivers/net/wireless/ti
parent431eb49e87ed8de7728b879e7288d85fb87f83ff (diff)
downloadlinux-01414f8882f944fe106a52a6d4c2ae8869822195.tar.xz
libertas: avoid -Wempty-body warning
Building without mesh supports shows a couple of warnings with 'make W=1': drivers/net/wireless/marvell/libertas/main.c: In function 'lbs_start_card': drivers/net/wireless/marvell/libertas/main.c:1068:37: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] 1068 | lbs_start_mesh(priv); Change the macros to use the usual "do { } while (0)" instead to shut up the warnings and make the code a litte more robust. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210322104343.948660-4-arnd@kernel.org
Diffstat (limited to 'drivers/net/wireless/ti')
0 files changed, 0 insertions, 0 deletions