lan743x: remove redundant assignment to variable rx_process_result
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Sep 2019 14:01:35 +0000 (15:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Sep 2019 14:47:07 +0000 (16:47 +0200)
commitf9bcfe214b00c37a6a8e21cab030503fdfd29aca
treea24416c041b002e4e25174a55c91a1f9c4627391
parent5b1ab1ae3d2f81143dc14d49a91adc31d8ef11ec
lan743x: remove redundant assignment to variable rx_process_result

The variable rx_process_result is being initialized with a value that
is never read and is being re-assigned immediately afterwards. The
assignment is redundant, so replace it with the return from function
lan743x_rx_process_packet.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan743x_main.c