Skip to content
Commit d0f718c1 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 3fae0273
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment