From: Heinrich Schuchardt Date: Sun, 18 Mar 2018 10:32:53 +0000 (+0100) Subject: net: macb: remove superfluous logical constraint X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6cdf072d9e6211cc71bcb8af647cc92a865582a4;p=u-boot.git net: macb: remove superfluous logical constraint In if (a > =0) {...} else (a < 0) {...} the second logical constraint is superfluous. Signed-off-by: Heinrich Schuchardt Acked-by: Joe Hershberger --- diff --git a/drivers/net/macb.c b/drivers/net/macb.c index e62aefcd0d..fe370bf728 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -915,7 +915,7 @@ static int macb_recv(struct eth_device *netdev) if (length >= 0) { net_process_received_packet(packet, length); reclaim_rx_buffers(macb, macb->next_rx_tail); - } else if (length < 0) { + } else { return length; } }