summaryrefslogtreecommitdiffstats
path: root/sound/atmel/ac97c.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-01-23 11:25:20 +0100
committerJohannes Berg <johannes.berg@intel.com>2015-01-23 11:25:20 +0100
commit13874e4b23de83899cc2d48011a98e42347c67cb (patch)
treeaa2ad92c3be430e2830da171cd3b7231ffb4c940 /sound/atmel/ac97c.h
parent985e88b13a25599eeb46b03c123531a5a11ac1cd (diff)
downloadop-kernel-dev-13874e4b23de83899cc2d48011a98e42347c67cb.zip
op-kernel-dev-13874e4b23de83899cc2d48011a98e42347c67cb.tar.gz
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 <johannes.berg@intel.com>
Diffstat (limited to 'sound/atmel/ac97c.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud