net: ena: ethtool: remove redundant non-zero check on rc
authorColin Ian King <colin.king@canonical.com>
Fri, 21 Feb 2020 23:26:53 +0000 (23:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 00:40:38 +0000 (16:40 -0800)
commit8e3a573517458a09fb0b702c2d04f3ec43f1b5c5
tree147acd6597fc8de80afb2523da24d460198cba81
parentfb0b1c60421f2fb8de2f2dfa628c7c1c3f034bcc
net: ena: ethtool: remove redundant non-zero check on rc

The non-zero check on rc is redundant as a previous non-zero
check on rc will always return and the second check is never
reached, hence it is redundant and can be removed.  Also
remove a blank line.

Addresses-Coverity: ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_ethtool.c