From: Johannes Berg Date: Mon, 25 Jun 2012 12:46:44 +0000 (+0200) Subject: mac80211_hwsim: fix smatch/sparse complaints X-Git-Tag: v3.6-rc1~125^2~57^2~237^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0f718c1c0dfcb67f3af47a1fc4de7784974d1f7;p=pandora-kernel.git 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 --- Reading git-diff-tree failed