net: dsa: setup master ethtool unconditionally
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Tue, 19 Sep 2017 15:56:58 +0000 (11:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 23:04:23 +0000 (16:04 -0700)
commitcd8d7dd41bfddaa02e34db35abfab14ce4584dee
treeb530ea3ce0d3761bbcb49700c12289373eaa2ed2
parentf5619866592c65adc087364cc1a3ba709201ea26
net: dsa: setup master ethtool unconditionally

When a DSA switch tree is meant to be applied, it already has a CPU
port. Thus remove the condition of dst->cpu_dp.

Moreover, the next lines access dst->cpu_dp unconditionally.

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>
net/dsa/dsa2.c