]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: don't print non-fatal MTU error if not supported
authorVladimir Oltean <olteanv@gmail.com>
Mon, 7 Sep 2020 23:25:56 +0000 (02:25 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Sep 2020 04:01:50 +0000 (21:01 -0700)
commit5e738607846bb7aa43004d5fa26e2e415b6e87bc
tree1198d1cd64f099fd1528b83b6915217de78f2966
parentf8817ade9b29ef9eb2d6a73dae42238c75c33ae7
net: dsa: don't print non-fatal MTU error if not supported

Commit b0813ca8f4d8 ("net: dsa: don't fail to probe if we couldn't set
the MTU") changed, for some reason, the "err && err != -EOPNOTSUPP"
check into a simple "err". This causes the MTU warning to be printed
even for drivers that don't have the MTU operations implemented.
Fix that.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/slave.c