Re: [PATCH] net: ena: ethtool: remove redundant non-zero check on rc
From: David Miller
Date: Sun Feb 23 2020 - 19:41:59 EST
From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Fri, 21 Feb 2020 23:26:53 +0000
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxx>
Applied to net-next.