OSDN Git Service

cfg80211: remove redundant check of !scan_plan
authorColin Ian King <colin.king@canonical.com>
Thu, 6 Sep 2018 09:58:44 +0000 (10:58 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Oct 2018 07:56:29 +0000 (09:56 +0200)
commit6762696429bbc4b2e1b6e5996c3d99da8bbc627d
tree7fc0d66425399c7c3747aba072a1d57934bb82f5
parentd25d062f55c6dc1a0d82dbebadf99924751a41b2
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>
net/wireless/nl80211.c