diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/bridge/br_private.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index dd583177cba4..efb57d911569 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -202,10 +202,7 @@ struct net_bridge_port | |||
202 | 202 | ||
203 | static inline struct net_bridge_port *br_port_get_rcu(const struct net_device *dev) | 203 | static inline struct net_bridge_port *br_port_get_rcu(const struct net_device *dev) |
204 | { | 204 | { |
205 | struct net_bridge_port *port = | 205 | return rcu_dereference(dev->rx_handler_data); |
206 | rcu_dereference_rtnl(dev->rx_handler_data); | ||
207 | |||
208 | return br_port_exists(dev) ? port : NULL; | ||
209 | } | 206 | } |
210 | 207 | ||
211 | static inline struct net_bridge_port *br_port_get_rtnl(const struct net_device *dev) | 208 | static inline struct net_bridge_port *br_port_get_rtnl(const struct net_device *dev) |