Commit a7757d31 authored by Sven Eckelmann's avatar Sven Eckelmann Committed by Simon Wunderlich

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 294f69e6 ("compiler_attributes.h: Add
'fallthrough' pseudo keyword for switch/case use") introduced a replacement
keyword which should be used instead.
Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarSimon Wunderlich <sw@simonwunderlich.de>
parent baa1e8a0
...@@ -1421,7 +1421,7 @@ batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb, ...@@ -1421,7 +1421,7 @@ batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb,
if (*orig) if (*orig)
return BATADV_FORW_SINGLE; return BATADV_FORW_SINGLE;
/* fall through */ fallthrough;
case 0: case 0:
return BATADV_FORW_NONE; return BATADV_FORW_NONE;
default: default:
......
...@@ -230,7 +230,7 @@ static netdev_tx_t batadv_interface_tx(struct sk_buff *skb, ...@@ -230,7 +230,7 @@ static netdev_tx_t batadv_interface_tx(struct sk_buff *skb,
break; break;
} }
/* fall through */ fallthrough;
case ETH_P_BATMAN: case ETH_P_BATMAN:
goto dropped; goto dropped;
} }
...@@ -455,7 +455,7 @@ void batadv_interface_rx(struct net_device *soft_iface, ...@@ -455,7 +455,7 @@ void batadv_interface_rx(struct net_device *soft_iface,
if (vhdr->h_vlan_encapsulated_proto != htons(ETH_P_BATMAN)) if (vhdr->h_vlan_encapsulated_proto != htons(ETH_P_BATMAN))
break; break;
/* fall through */ fallthrough;
case ETH_P_BATMAN: case ETH_P_BATMAN:
goto dropped; goto dropped;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment