diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-10-23 12:21:07 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-28 02:07:53 +0300 |
commit | 585bd812de4eb0e412e504da81d2554fb03ae652 (patch) | |
tree | 0374d10ee6681fda607a524912a8b79c8d3b8978 /drivers | |
parent | b6bf4776d9e2ed4b2552d1c252fff8de3786309a (diff) | |
download | linux-585bd812de4eb0e412e504da81d2554fb03ae652.tar.xz |
net: microchip: Remove unneeded variable ret
Remove unneeded variable ret used to store return value.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20201023092107.28065-1-vulab@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/microchip/lan743x_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index a1938842f828..8ea0b4eec19c 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.c +++ b/drivers/net/ethernet/microchip/lan743x_main.c @@ -834,14 +834,13 @@ static int lan743x_mac_init(struct lan743x_adapter *adapter) static int lan743x_mac_open(struct lan743x_adapter *adapter) { - int ret = 0; u32 temp; temp = lan743x_csr_read(adapter, MAC_RX); lan743x_csr_write(adapter, MAC_RX, temp | MAC_RX_RXEN_); temp = lan743x_csr_read(adapter, MAC_TX); lan743x_csr_write(adapter, MAC_TX, temp | MAC_TX_TXEN_); - return ret; + return 0; } static void lan743x_mac_close(struct lan743x_adapter *adapter) |