summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ic/ne2000.c8
-rw-r--r--sys/dev/isa/if_ec.c8
-rw-r--r--sys/dev/isa/if_we.c5
3 files changed, 3 insertions, 18 deletions
diff --git a/sys/dev/ic/ne2000.c b/sys/dev/ic/ne2000.c
index 255b648dc05..33ad2aea13c 100644
--- a/sys/dev/ic/ne2000.c
+++ b/sys/dev/ic/ne2000.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ne2000.c,v 1.16 2006/07/09 16:00:48 miod Exp $ */
+/* $OpenBSD: ne2000.c,v 1.17 2006/07/29 11:31:20 miod Exp $ */
/* $NetBSD: ne2000.c,v 1.12 1998/06/10 01:15:50 thorpej Exp $ */
/*-
@@ -547,12 +547,6 @@ ne2000_write_mbuf(sc, m, buf)
savebyte, 2);
#endif
leftover = 0;
-#ifdef i386
-#define ALIGNED_POINTER(p,t) 1
-#endif
-#ifdef alpha
-#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
-#endif
} else if (ALIGNED_POINTER(data,
u_int16_t) == 0) {
/*
diff --git a/sys/dev/isa/if_ec.c b/sys/dev/isa/if_ec.c
index aab588a6f53..9051c9240b9 100644
--- a/sys/dev/isa/if_ec.c
+++ b/sys/dev/isa/if_ec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ec.c,v 1.6 2005/06/08 17:03:00 henning Exp $ */
+/* $OpenBSD: if_ec.c,v 1.7 2006/07/29 11:31:21 miod Exp $ */
/* $NetBSD: if_ec.c,v 1.9 1998/07/05 06:49:12 jonathan Exp $ */
/*-
@@ -655,12 +655,6 @@ ec_write_mbuf(sc, m, buf)
*(u_int16_t *)savebyte);
buf += 2;
leftover = 0;
-#ifdef i386
-#define ALIGNED_POINTER(p,t) 1
-#endif
-#ifdef alpha
-#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
-#endif
} else if (ALIGNED_POINTER(data, u_int16_t) == 0) {
/*
* Unaligned data; buffer the next byte.
diff --git a/sys/dev/isa/if_we.c b/sys/dev/isa/if_we.c
index 0963e3588f9..12a396790d1 100644
--- a/sys/dev/isa/if_we.c
+++ b/sys/dev/isa/if_we.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_we.c,v 1.13 2005/06/08 17:03:00 henning Exp $ */
+/* $OpenBSD: if_we.c,v 1.14 2006/07/29 11:31:21 miod Exp $ */
/* $NetBSD: if_we.c,v 1.11 1998/07/05 06:49:14 jonathan Exp $ */
/*-
@@ -680,9 +680,6 @@ we_write_mbuf(sc, m, buf)
*(u_int16_t *)savebyte);
buf += 2;
leftover = 0;
-#ifdef alpha
-#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
-#endif
} else if (ALIGNED_POINTER(data, u_int16_t) == 0) {
/*
* Unaligned dta; buffer the next byte.