From: Johannes Berg Date: Fri, 23 Jan 2015 10:25:20 +0000 (+0100) Subject: nl80211: suppress smatch warnings X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~69^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13874e4b23de83899cc2d48011a98e42347c67cb;p=pandora-kernel.git nl80211: suppress smatch warnings smatch warns that we once checked request->ssids in two functions and then unconditionally used it later again. This is actually fine, because the code has a relationship between attrs[NL80211_ATTR_SCAN_SSIDS], n_ssids and request->ssids, but smatch isn't smart enough to realize that. Suppress the warnings by always checking just n_ssids - that way smatch won't know that request->ssids could be NULL, and since it is only NULL when n_ssids is 0 we still check everything correctly. Signed-off-by: Johannes Berg --- Reading git-diff-tree failed