OSDN Git Service

cfg80211: scan: use element finding functions in easy cases
authorJohannes Berg <johannes.berg@intel.com>
Thu, 30 Sep 2021 11:11:30 +0000 (13:11 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 21 Oct 2021 15:01:20 +0000 (17:01 +0200)
commita3eca81792977954b5beb19bc05fd1b8f859b856
tree557c78930000b4dc2e6ebd07ee83848d3560b9f7
parent153e2a11c99b7382597614ddb995618c22aa1b5f
cfg80211: scan: use element finding functions in easy cases

There are a few easy cases where we only check for NULL or
have just simple use of the result, this can be done with
the element finding functions instead.

Link: https://lore.kernel.org/r/20210930131130.f27c8a7ec264.Iadb03c4307e9216e080ce513e8ad4048cd020b25@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c