]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: mv88e6xxx: fix debug print for SPEED_UNFORCED
authorAndrey Eremeev <Axtone4all@yandex.ru>
Wed, 15 Dec 2021 17:30:32 +0000 (20:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Dec 2021 10:57:21 +0000 (10:57 +0000)
commitba999f7082d4115e32641468c78c8de19dcf9fa8
treef2d13e7940b154f5151eda4fd9230149cb868ecf
parent75c8b94013f491a77faa5348e36ca3d8d60bc1d4
dsa: mv88e6xxx: fix debug print for SPEED_UNFORCED

Debug print uses invalid check to detect if speed is unforced:
(speed != SPEED_UNFORCED) should be used instead of (!speed).

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Andrey Eremeev <Axtone4all@yandex.ru>
Fixes: f4b4622108c0 ("net: dsa: mv88e6xxx: add port's MAC speed setter")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/port.c