Remove sead ALIGNED_POINTER code

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3705 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mentor 2008-06-06 01:40:25 +00:00
parent 0c4f9cd972
commit a5680de2b6
2 changed files with 0 additions and 21 deletions

View 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))) { \

View 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;
}