]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6632ea22ec17344f730d3a373688235a2aad37f
tree73d59758efadd2313d83e481b1c370502cace130
parent8c24b56285e2149ee4121ad84a62a82b62d8cf74
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