mac80211: mark expected switch fall-throughs

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

Notice that in some cases I replaced "fall through on else" and
"otherwise fall through" comments with just a "fall through" comment,
which is what GCC is expecting to find.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Gustavo A. R. Silva
2017-10-17 18:14:50 -05:00
committed by Johannes Berg
parent 51e18a453f
commit 02049ce27e
10 changed files with 14 additions and 4 deletions

View File

@@ -672,7 +672,7 @@ void mesh_plink_timer(struct timer_list *t)
break;
}
reason = WLAN_REASON_MESH_MAX_RETRIES;
/* fall through on else */
/* fall through */
case NL80211_PLINK_CNF_RCVD:
/* confirm timer */
if (!reason)