mirror of
https://xff.cz/git/u-boot/
synced 2025-09-17 00:22:07 +02:00
net: cosmetic: Fix checkpatch.pl failures in linklocal
A few new rules in checkpatch.pl since linklocal.c was added. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
4fd5055f59
commit
8e7ff6773a
@@ -239,9 +239,8 @@ void link_local_receive_arp(struct arp_hdr *arp, int len)
|
|||||||
* FIXME: links routinely go down;
|
* FIXME: links routinely go down;
|
||||||
*/
|
*/
|
||||||
bb_error_msg("iface %s is down", eth_get_name());
|
bb_error_msg("iface %s is down", eth_get_name());
|
||||||
if (ready) {
|
if (ready)
|
||||||
run(argv, "deconfig", &ip);
|
run(argv, "deconfig", &ip);
|
||||||
}
|
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
@@ -258,9 +257,8 @@ void link_local_receive_arp(struct arp_hdr *arp, int len)
|
|||||||
&arp->ar_tha,
|
&arp->ar_tha,
|
||||||
&arp->ar_tpa);
|
&arp->ar_tpa);
|
||||||
|
|
||||||
if (arp->ar_op != htons(ARPOP_REQUEST)
|
if (arp->ar_op != htons(ARPOP_REQUEST) &&
|
||||||
&& arp->ar_op != htons(ARPOP_REPLY)
|
arp->ar_op != htons(ARPOP_REPLY)) {
|
||||||
) {
|
|
||||||
configure_wait();
|
configure_wait();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user