diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-08-31 18:06:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-01 22:51:12 -0700 |
commit | 04bed1434df256b07e78fa5deae848bba18a90f3 (patch) | |
tree | cc9b37d3c59dd7cab8d5a63e8bdd04fa1ac9506c /include/net/dsa.h | |
parent | 278ed676cf453ee41fe1882f872e0ec2741ee191 (diff) | |
download | talos-op-linux-04bed1434df256b07e78fa5deae848bba18a90f3.tar.gz talos-op-linux-04bed1434df256b07e78fa5deae848bba18a90f3.zip |
net: dsa: remove ds_to_priv
Access the priv member of the dsa_switch structure directly, instead of
having an unnecessary helper.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index e3eb230b970d..9d97c5214341 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -391,11 +391,6 @@ void register_switch_driver(struct dsa_switch_ops *type); void unregister_switch_driver(struct dsa_switch_ops *type); struct mii_bus *dsa_host_dev_to_mii_bus(struct device *dev); -static inline void *ds_to_priv(struct dsa_switch *ds) -{ - return ds->priv; -} - static inline bool dsa_uses_tagged_protocol(struct dsa_switch_tree *dst) { return dst->rcv != NULL; |