net: dsa: mv88e6xxx: silently skip PVT ops
authorVivien Didelot <vivien.didelot@gmail.com>
Mon, 21 Oct 2019 20:51:25 +0000 (16:51 -0400)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 19:37:07 +0000 (12:37 -0700)
commitd14939be8bfc4b7493007c365cce5d707d4fbfa1
tree73d59758efadd2313d83e481b1c370502cace130
parentda4561cda2ea6240fc61442eeb2acc47e2e0cae3
net: dsa: mv88e6xxx: silently skip PVT ops

Since mv88e6xxx_pvt_map is a static helper, no need to return
-EOPNOTSUPP if the chip has no PVT, simply silently skip the operation.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/dsa/mv88e6xxx/chip.c