batman-adv: Use 'fallthrough' pseudo keyword
The usage of the '/* fall through */' comments in switches are no longer
marked as non-deprecated variant of implicit fall throughs for switch
statements. The commit 294f69e662
("compiler_attributes.h: Add
'fallthrough' pseudo keyword for switch/case use") introduced a replacement
keyword which should be used instead.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
This commit is contained in:

committed by
Simon Wunderlich

parent
baa1e8a0da
commit
a7757d318a
@@ -230,7 +230,7 @@ static netdev_tx_t batadv_interface_tx(struct sk_buff *skb,
|
||||
break;
|
||||
}
|
||||
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case ETH_P_BATMAN:
|
||||
goto dropped;
|
||||
}
|
||||
@@ -455,7 +455,7 @@ void batadv_interface_rx(struct net_device *soft_iface,
|
||||
if (vhdr->h_vlan_encapsulated_proto != htons(ETH_P_BATMAN))
|
||||
break;
|
||||
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case ETH_P_BATMAN:
|
||||
goto dropped;
|
||||
}
|
||||
|
Reference in New Issue
Block a user