summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authortsutsui <tsutsui@NetBSD.org>2009-04-25 18:27:39 +0000
committertsutsui <tsutsui@NetBSD.org>2009-04-25 18:27:39 +0000
commit378ce951b9b2d898b84fa3a423a6043e0d6daeaa (patch)
tree0fe51b4f22c3ac4034c8edbee576de024d698c3a /sys/dev
parent76e4602ef64f504414c9b2d81f29439a40c62613 (diff)
Use roundup2() macro.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/rtl81x9.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c
index a05d44431ec..fe2ff449ba4 100644
--- a/sys/dev/ic/rtl81x9.c
+++ b/sys/dev/ic/rtl81x9.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rtl81x9.c,v 1.82 2008/04/25 11:27:19 tsutsui Exp $ */
+/* $NetBSD: rtl81x9.c,v 1.83 2009/04/25 18:27:39 tsutsui Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtl81x9.c,v 1.82 2008/04/25 11:27:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtl81x9.c,v 1.83 2009/04/25 18:27:39 tsutsui Exp $");
#include "bpfilter.h"
#include "rnd.h"
@@ -1029,7 +1029,7 @@ rtk_rxeof(struct rtk_softc *sc)
else
new_rx = cur_rx + total_len;
/* Round up to 32-bit boundary. */
- new_rx = ((new_rx + 3) & ~3) % RTK_RXBUFLEN;
+ new_rx = roundup2(new_rx, sizeof(uint32_t)) % RTK_RXBUFLEN;
/*
* The RealTek chip includes the CRC with every