diff options
author | John Linville <linville@tuxdriver.com> | 2015-06-24 11:42:25 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-07-17 15:38:27 +0200 |
commit | 841b351cf98e0b4ef25f6459d35251e63c0a7a49 (patch) | |
tree | b6f60880d931f5c1fbca07dfe67f626df1b4567f /net/mac80211/cfg.c | |
parent | 33d8783c58427683b533664f67f8c4378ed64495 (diff) | |
download | op-kernel-dev-841b351cf98e0b4ef25f6459d35251e63c0a7a49.zip op-kernel-dev-841b351cf98e0b4ef25f6459d35251e63c0a7a49.tar.gz |
wireless: remove superfluous if statement in regulatory code
Commit eeca9fce1d71 ('cfg80211: Schedule timeout for all CRDA calls')
left behind a superfluous check after it removed some earlier code.
In reg_process_hint, the test of "treatment == REG_REQ_IGNORE ||
treatment == REG_REQ_ALREADY_SET" is superfluous because the code in the
if-then branch is identical to the code after the if statement.
Coverity CID #1295939
I also removed the unnecessary assignment of treatment in this case,
and added a comment reminding any future patch authors to ensure that
treatment is properly assigned before it is used after the switch.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
0 files changed, 0 insertions, 0 deletions