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 /drivers/net/dsa/bcm_sf2.h | |
parent | 278ed676cf453ee41fe1882f872e0ec2741ee191 (diff) |
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 'drivers/net/dsa/bcm_sf2.h')
-rw-r--r-- | drivers/net/dsa/bcm_sf2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/bcm_sf2.h b/drivers/net/dsa/bcm_sf2.h index afe56686b3d7..46c4ea796574 100644 --- a/drivers/net/dsa/bcm_sf2.h +++ b/drivers/net/dsa/bcm_sf2.h @@ -101,7 +101,7 @@ struct bcm_sf2_priv { static inline struct bcm_sf2_priv *bcm_sf2_to_priv(struct dsa_switch *ds) { - struct b53_device *dev = ds_to_priv(ds); + struct b53_device *dev = ds->priv; return dev->priv; } |