Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic malo_rx_desc::status is uint8_t, so don't try to ...
details: https://anonhg.NetBSD.org/src/rev/59d4ad5db373
branches: trunk
changeset: 814204:59d4ad5db373
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Mar 11 22:39:01 2016 +0000
description:
malo_rx_desc::status is uint8_t, so don't try to endian-twiddle it
diffstat:
sys/dev/ic/malo.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1883018ebcca -r 59d4ad5db373 sys/dev/ic/malo.c
--- a/sys/dev/ic/malo.c Fri Mar 11 22:09:54 2016 +0000
+++ b/sys/dev/ic/malo.c Fri Mar 11 22:39:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: malo.c,v 1.4 2016/03/11 18:33:18 christos Exp $ */
+/* $NetBSD: malo.c,v 1.5 2016/03/11 22:39:01 macallan Exp $ */
/* $OpenBSD: malo.c,v 1.92 2010/08/27 17:08:00 jsg Exp $ */
/*
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: malo.c,v 1.4 2016/03/11 18:33:18 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: malo.c,v 1.5 2016/03/11 22:39:01 macallan Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -622,7 +622,7 @@
goto fail;
}
- desc->status = htole16(1);
+ desc->status = 1;
desc->physdata = htole32(data->map->dm_segs->ds_addr);
desc->physnext = htole32(ring->physaddr +
(i + 1) % count * sizeof(struct malo_rx_desc));
Home |
Main Index |
Thread Index |
Old Index