mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 06:31:28 +01: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:
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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user