mlxsw: spectrum: remove redundant check if err is zero
authorColin Ian King <colin.king@canonical.com>
Fri, 23 Sep 2016 11:02:45 +0000 (12:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Sep 2016 12:28:23 +0000 (08:28 -0400)
commitfaac0ff0a544eed6b8c9375c1104d692e4979540
tree73a65f069981b0930424fce9426bd3e5de0b1d8b
parent7f8c2865a94a73308386627cd7556c17f03efb63
mlxsw: spectrum: remove redundant check if err is zero

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@canonical.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c