提交 6cdf072d 编写于 作者: H Heinrich Schuchardt 提交者: Joe Hershberger

net: macb: remove superfluous logical constraint

In

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

the second logical constraint is superfluous.
Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
上级 4b23d3c8
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册