提交 ff5db439 编写于 作者: E Eliad Peller 提交者: Johannes Berg

mac80211: remove redundant check

local->scan_req was tested in the previous line, so it
can't be NULL.
Signed-off-by: NEliad Peller <eliadx.peller@intel.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 8cd4d456
......@@ -799,7 +799,7 @@ void ieee80211_scan_work(struct work_struct *work)
if (!sdata || !local->scan_req)
goto out;
if (local->scan_req && !local->scanning) {
if (!local->scanning) {
struct cfg80211_scan_request *req = local->scan_req;
int rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册