mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
278ed676cf
commit
04bed1434d
5 changed files with 60 additions and 65 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue