linux_dsm_epyc7002/drivers/net/ethernet/microchip
Colin Ian King 8e8af97a3f lan743x: remove some redundant variables and assignments
Function lan743x_phy_init assigns pointer 'netdev' but this is never read
and hence it can be removed. The return error code handling can also be
cleaned up to remove the variable 'ret'.

Function lan743x_phy_link_status_change assigns pointer 'phy' twice and
this is never read, so it also can be removed.

Finally, function lan743x_tx_napi_poll initializes pointer 'adapter'
and then re-assigns the same value into this pointer a little later on
so this second assignment is redundant and can be also removed.

Cleans up clang warnings:
drivers/net/ethernet/microchip/lan743x_main.c:951:2: warning: Value
stored to 'netdev' is never read
drivers/net/ethernet/microchip/lan743x_main.c:971:3: warning: Value
stored to 'phy' is never read
drivers/net/ethernet/microchip/lan743x_main.c:1583:26: warning: Value
stored to 'adapter' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-12 11:12:38 -04:00
..
enc28j60_hw.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
enc28j60.c net: microchip: enc28j60: use new api ethtool_{get|set}_link_ksettings 2017-02-12 22:32:17 -05:00
encx24j600_hw.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
encx24j600-regmap.c encx24j600: Fix some checkstyle warnings 2016-12-16 13:31:47 -05:00
encx24j600.c net: microchip: encx24j600: use new api ethtool_{get|set}_link_ksettings 2017-02-12 22:32:17 -05:00
Kconfig lan743x: Add main source files for new lan743x driver 2018-03-07 11:44:42 -05:00
lan743x_main.c lan743x: remove some redundant variables and assignments 2018-03-12 11:12:38 -04:00
lan743x_main.h lan743x: Add main source files for new lan743x driver 2018-03-07 11:44:42 -05:00
Makefile lan743x: Add main source files for new lan743x driver 2018-03-07 11:44:42 -05:00