Re: [PATCH] mlxsw: spectrum: remove redundant check if err is zero
From: David Miller
Date: Sat Sep 24 2016 - 08:28:58 EST
From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Fri, 23 Sep 2016 12:02:45 +0100
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> There is an earlier check and return if err is non-zero, so
> the check to see if it is zero is redundant in every iteration
> of the loop and hence the check can be removed.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Applied to net-next.