From: Ebru Akagunduz Date: Mon, 20 Oct 2014 23:47:29 +0000 (+0300) Subject: staging: wlan-ng: Fix restricted __be16 degrades to integer X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~1038 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb6c1ee3057ebb717fd4439711b3cb5354d5085f;p=pandora-kernel.git staging: wlan-ng: Fix restricted __be16 degrades to integer skb->protocol variable type is __be16 and in if condition it is comparing with ETH_P_80211_RAW constant variable which is not __be16 type. Using be16_to_cpu() function, value of skb->protocol converted native processor format. This bug was found by sparse. Signed-off-by: Ebru Akagunduz Acked-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed