]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf182d9c3838e387e434952e823d8afa5b570c8cb
treea24416c041b002e4e25174a55c91a1f9c4627391
parent8c85e6915f4e16fd2121305119ebbc01967e3b3b
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