Johannes Berg d0f718c1c0 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>
2012-06-25 16:17:46 +02:00
..
2012-04-21 15:28:47 -04:00
2012-04-03 13:09:18 +02:00
2012-05-22 16:34:21 -07:00
2012-04-16 23:56:36 -04:00
2012-03-27 22:45:26 -04:00