wifi: wireless: avoid strlen() in cfg80211_michael_mic_failure()
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 10 Jan 2024 05:42:06 +0000 (08:42 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Jan 2024 08:28:26 +0000 (09:28 +0100)
commit7f78840cf4d4ac9ab36ddf574a025a45835375d0
tree8b6ce2358f830b1a0068f79334d0079b41affc66
parent5f76499fb541c3e8ae401414bfdf702940c8c531
wifi: wireless: avoid strlen() in cfg80211_michael_mic_failure()

In 'cfg80211_michael_mic_failure()', avoid extra call to 'strlen()'
by using the value returned by 'sprintf()'. Compile tested only.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Link: https://msgid.link/20240110054246.371651-1-dmantipov@yandex.ru
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/mlme.c