net: dsa: bcm_sf2: dst in not an array
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Wed, 2 Aug 2017 19:48:25 +0000 (15:48 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 16:30:11 +0000 (09:30 -0700)
commit3a8f6f874fa1ac004157fb3df742a5034718a2ce
tree0321650ac646a10abd0ee67670e587d59e968554
parent2d29b39739b94f02196d99502126f269fd8ec2ea
net: dsa: bcm_sf2: dst in not an array

It's been a while now since ds->dst is not an array anymore, but a
simple pointer to a dsa_switch_tree.

Fortunately, SF2 does not support multi-chip and thus ds->index is
always 0.

This patch substitutes 'ds->dst[ds->index].' with 'ds->dst->'.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c