diff --git a/include/compat.h b/include/compat.h index 65bc25e..2637b0c 100644 --- a/include/compat.h +++ b/include/compat.h @@ -115,17 +115,6 @@ static inline void *kzalloc(size_t size, gfp_t flags) #define __offsetof(t,m) offsetof(t,m) -#ifndef ALIGNED_POINTER -/* - * ALIGNED_POINTER is a boolean macro that checks whether an address - * is valid to fetch data elements of type t from on this architecture. - * This does not reflect the optimal alignment, just the possibility - * (within reasonable limits). - * - */ -#define ALIGNED_POINTER(p,t) 1 -#endif - #ifdef __KERNEL__ #define KASSERT(exp, msg) do { \ if (unlikely(!(exp))) { \ diff --git a/net80211/ieee80211_input.c b/net80211/ieee80211_input.c index d39ae27..ae306f9 100644 --- a/net80211/ieee80211_input.c +++ b/net80211/ieee80211_input.c @@ -1251,16 +1251,6 @@ ieee80211_decap(struct ieee80211vap *vap, struct sk_buff *skb, int hdrlen) else eh->ether_type = ether_type; - if (!ALIGNED_POINTER(skb->data + sizeof(*eh), u_int32_t)) { - struct sk_buff *tskb; - - /* XXX: does this always work? */ - tskb = skb_copy(skb, GFP_ATOMIC); - if (tskb) - ieee80211_skb_copy_noderef(skb, tskb); - ieee80211_dev_kfree_skb(&skb); - skb = tskb; - } return skb; }