diff options
author | glebius <glebius@FreeBSD.org> | 2013-02-12 11:24:37 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-02-12 11:24:37 +0000 |
commit | f03c14c9a708d07642aeda3b27633b69e27e413f (patch) | |
tree | 9f43f7b239d3da24bbf04b72c80ab6f3f275d321 /sys/net80211/ieee80211_freebsd.c | |
parent | 230643b5db9e9c68d92abc57ce7cec955466e46e (diff) | |
download | FreeBSD-src-f03c14c9a708d07642aeda3b27633b69e27e413f.zip FreeBSD-src-f03c14c9a708d07642aeda3b27633b69e27e413f.tar.gz |
Substitute '#ifdef ALIGNED_POINTER' with '#ifndef __NO_STRICT_ALIGNMENT',
since the former is defined everywhere. This cuts off some code not
necessary on non strict aligment arches.
Reviewed by: adrian
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/net80211/ieee80211_freebsd.c')
-rw-r--r-- | sys/net80211/ieee80211_freebsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_freebsd.c b/sys/net80211/ieee80211_freebsd.c index 1c64915..72db271 100644 --- a/sys/net80211/ieee80211_freebsd.c +++ b/sys/net80211/ieee80211_freebsd.c @@ -432,6 +432,7 @@ ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen) return m; } +#ifndef __NO_STRICT_ALIGNMENT /* * Re-align the payload in the mbuf. This is mainly used (right now) * to handle IP header alignment requirements on certain architectures. @@ -468,6 +469,7 @@ ieee80211_realign(struct ieee80211vap *vap, struct mbuf *m, size_t align) m_freem(m); return n; } +#endif /* !__NO_STRICT_ALIGNMENT */ int ieee80211_add_callback(struct mbuf *m, |