]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 23 Jan 2019 07:03:32 +0000 (01:03 -0600)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Jan 2019 13:05:31 +0000 (14:05 +0100)
commit3f10ce30d707f122d549fe8f393a41b85117b6d8
tree1663419c79ae482b36327bb4040e10273b51e4aa
parent11a13ed84389a40199656345b8f78db5d7b7afd0
cfg80211: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

This patch fixes the following warnings:

net/wireless/wext-compat.c:1327:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
net/wireless/wext-compat.c:1341:6: warning: this statement may fall through [-Wimplicit-fallthrough=]

Warning level 3 was used: -Wimplicit-fallthrough=3

This patch is part of the ongoing efforts to enabling
-Wimplicit-fallthrough

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/wext-compat.c