Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Use a define instead of a magic constant. NFCI.
details: https://anonhg.NetBSD.org/src/rev/6b1a6320ddad
branches: trunk
changeset: 467142:6b1a6320ddad
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Jan 15 08:02:53 2020 +0000
description:
Use a define instead of a magic constant. NFCI.
diffstat:
sys/dev/usb/if_axen.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6bf39b60fd54 -r 6b1a6320ddad sys/dev/usb/if_axen.c
--- a/sys/dev/usb/if_axen.c Wed Jan 15 05:56:57 2020 +0000
+++ b/sys/dev/usb/if_axen.c Wed Jan 15 08:02:53 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_axen.c,v 1.68 2020/01/07 06:42:26 maxv Exp $ */
+/* $NetBSD: if_axen.c,v 1.69 2020/01/15 08:02:53 skrll Exp $ */
/* $OpenBSD: if_axen.c,v 1.3 2013/10/21 10:10:22 yuo Exp $ */
/*
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.68 2020/01/07 06:42:26 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.69 2020/01/15 08:02:53 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -846,7 +846,7 @@
goto nextpkt;
}
- usbnet_enqueue(un, buf + 2, pkt_len - 6,
+ usbnet_enqueue(un, buf + ETHER_ALIGN, pkt_len - 6,
axen_csum_flags_rx(ifp, pkt_hdr), 0, 0);
nextpkt:
Home |
Main Index |
Thread Index |
Old Index