Remove sead ALIGNED_POINTER code
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Fri, 6 Jun 2008 01:40:25 +0000 (01:40 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Fri, 6 Jun 2008 01:40:25 +0000 (01:40 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3705 0192ed92-7a03-0410-a25b-9323aeb14dbd

include/compat.h
net80211/ieee80211_input.c

index 65bc25eb885db1bceca509b045fc618e5d8d12db..2637b0c8015295a1842bb512508c2a27eaddb244 100644 (file)
@@ -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))) {                 \
index d39ae27ab176d12513e8952d5e28e3f2bf05b800..ae306f95cf5e7449c626cfaf1c4f2e39c2753251 100644 (file)
@@ -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;
 }