wifi: wext: avoid extra calls to strlen() in ieee80211_bss()
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 12 Sep 2023 03:55:16 +0000 (06:55 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 13 Sep 2023 08:20:49 +0000 (10:20 +0200)
commit22446b7ee2bb44fe7a61d8eda6d83bdc726bbbd9
tree65946412c3f3bcf06aba8821d403038882b12911
parent8c73d5248dcf112611654bcd32352dc330b02397
wifi: wext: avoid extra calls to strlen() in ieee80211_bss()

Since 'sprintf()' returns the number of characters emitted, an
extra calls to 'strlen()' in 'ieee80211_bss()' may be dropped.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Link: https://lore.kernel.org/r/20230912035522.15947-1-dmantipov@yandex.ru
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c