OSDN Git Service

mac80211: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:36:45 +0000 (12:36 -0600)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Dec 2020 11:51:04 +0000 (12:51 +0100)
commitaaaee2d68a9578394894fec0d61bfac2d49fc9e7
tree9d2e4a5aa497ebde5c40cd47a4493fa014e4affe
parent01c9c0ab3524f2cd6fbceec6488aa4094d8ef9d9
mac80211: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/1a9c4e8248e76e1361edbe2471a68773d87f0b67.1605896060.git.gustavoars@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c