mirror of
https://github.com/proski/madwifi
synced 2024-11-21 22:11:32 +03:00
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:
parent
0c4f9cd972
commit
a5680de2b6
@ -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))) { \
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user