summaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorVivien Didelot2016-09-01 00:06:13 +0200
committerDavid S. Miller2016-09-02 07:51:12 +0200
commit04bed1434df256b07e78fa5deae848bba18a90f3 (patch)
treecc9b37d3c59dd7cab8d5a63e8bdd04fa1ac9506c /include/net/dsa.h
parentMerge branch 'br-next' (diff)
downloadkernel-qcow2-linux-04bed1434df256b07e78fa5deae848bba18a90f3.tar.gz
kernel-qcow2-linux-04bed1434df256b07e78fa5deae848bba18a90f3.tar.xz
kernel-qcow2-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.h5
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;