mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-15 19:25:13 +00:00
cfg80211: remove redundant check of !scan_plan
The check for !scan_plan is redunant as this has been checked in the proceeding statement and the code returns -ENOBUFS if it is true. Remove the redundant check. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
d25d062f55
commit
6762696429
1 changed files with 1 additions and 2 deletions
|
|
@ -10690,8 +10690,7 @@ static int nl80211_send_wowlan_nd(struct sk_buff *msg,
|
|||
if (!scan_plan)
|
||||
return -ENOBUFS;
|
||||
|
||||
if (!scan_plan ||
|
||||
nla_put_u32(msg, NL80211_SCHED_SCAN_PLAN_INTERVAL,
|
||||
if (nla_put_u32(msg, NL80211_SCHED_SCAN_PLAN_INTERVAL,
|
||||
req->scan_plans[i].interval) ||
|
||||
(req->scan_plans[i].iterations &&
|
||||
nla_put_u32(msg, NL80211_SCHED_SCAN_PLAN_ITERATIONS,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue