summaryrefslogtreecommitdiff
path: root/include/linux/nl80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-06-25 16:46:44 +0400
committerJohannes Berg <johannes.berg@intel.com>2012-06-25 18:17:46 +0400
commitd0f718c1c0dfcb67f3af47a1fc4de7784974d1f7 (patch)
treeed9b23d5f6359a5b19193d58fc40d91883d27ec3 /include/linux/nl80211.h
parent3fae0273168026ed7b6065674f1410f531d58164 (diff)
downloadlinux-d0f718c1c0dfcb67f3af47a1fc4de7784974d1f7.tar.xz
mac80211_hwsim: fix smatch/sparse complaints
The code is fine in both cases as-is, but we can write it slightly differently to fix smatch/sparse complaints: * compare the skb pointer (which we use as a cookie) by casting the skb to unsigned long rather than the cookie to a pointer (fixes "different address spaces") * when transmitting, data->channel must be assigned, don't check it (fixes "dereferenced before check") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/linux/nl80211.h')
0 files changed, 0 insertions, 0 deletions