mirror of
https://xff.cz/git/u-boot/
synced 2025-09-09 20:52:13 +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;
|
||||
*/
|
||||
bb_error_msg("iface %s is down", eth_get_name());
|
||||
if (ready) {
|
||||
if (ready)
|
||||
run(argv, "deconfig", &ip);
|
||||
}
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
continue;
|
||||
@@ -258,9 +257,8 @@ void link_local_receive_arp(struct arp_hdr *arp, int len)
|
||||
&arp->ar_tha,
|
||||
&arp->ar_tpa);
|
||||
|
||||
if (arp->ar_op != htons(ARPOP_REQUEST)
|
||||
&& arp->ar_op != htons(ARPOP_REPLY)
|
||||
) {
|
||||
if (arp->ar_op != htons(ARPOP_REQUEST) &&
|
||||
arp->ar_op != htons(ARPOP_REPLY)) {
|
||||
configure_wait();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user