]> git.baikalelectronics.ru Git - kernel.git/commit
phy: make phy_set_max_speed() *void*
authorSergey Shtylyov <s.shtylyov@omp.ru>
Fri, 28 Jan 2022 18:32:40 +0000 (21:32 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Jan 2022 11:30:56 +0000 (11:30 +0000)
commit73c105ad2a3e142d81fc59761ce8353d0b211b8f
tree5fd499167ca8b5770bcfda9a932465f8ee5b4d43
parentfe8930278c6b9bc1bcaa1736706465da8637ff6c
phy: make phy_set_max_speed() *void*

After following the call tree of phy_set_max_speed(), it became clear
that this function never returns anything but 0, so we can change its
result type to *void* and drop the result checks from the three drivers
that actually bothered to do it...

Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb_main.c
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/phy/aquantia_main.c
drivers/net/phy/phy-core.c
include/linux/phy.h