Skip to content
Snippets Groups Projects
Commit 6cdf072d authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Joe Hershberger
Browse files

net: macb: remove superfluous logical constraint


In

	if (a > =0) {...}
	else (a < 0) {...}

the second logical constraint is superfluous.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 4b23d3c8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment