]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffdb5c2fb2a359373f8e46498afd6b9d22d3f821
tree557c78930000b4dc2e6ebd07ee83848d3560b9f7
parent8e360ef67efb402585d6a809635287ad76279073
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