diff options
author | Nathan Chancellor <nathan@kernel.org> | 2021-06-03 19:56:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-04 01:27:37 +0300 |
commit | 819fb78f695527fc015e0c93b23c6492f7257015 (patch) | |
tree | aea062d1b38f36017e17026b548a192d660c0b5e /drivers/net/ethernet/qualcomm | |
parent | a10541f5d9fa2aab5ff54311473b05ba75b84226 (diff) | |
download | linux-819fb78f695527fc015e0c93b23c6492f7257015.tar.xz |
net: ks8851: Make ks8851_read_selftest() return void
clang points out that ret in ks8851_read_selftest() is set but unused:
drivers/net/ethernet/micrel/ks8851_common.c:1028:6: warning: variable
'ret' set but not used [-Wunused-but-set-variable]
int ret = 0;
^
1 warning generated.
The return code of this function has never been checked so just remove
ret and make the function return void.
Fixes: 3ba81f3ece3c ("net: Micrel KS8851 SPI network driver")
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm')
0 files changed, 0 insertions, 0 deletions