OSDN Git Service

mac80211: Remove unused assignment statements
authorluo penghao <luo.penghao@zte.com.cn>
Thu, 4 Nov 2021 06:14:11 +0000 (06:14 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Nov 2021 10:46:24 +0000 (11:46 +0100)
commit71abf71e9e634a55b1156f4aaae6122207f4b8ef
treebda80fb395ed8c85d634ef26b37a1826a90a574f
parent91e89c77322d2a65ede9f418642942f3c096a63b
mac80211: Remove unused assignment statements

The assignment of these three local variables in the file will not
be used in the corresponding functions, so they should be deleted.

The clang_analyzer complains as follows:

net/mac80211/wpa.c:689:2 warning:
net/mac80211/wpa.c:883:2 warning:
net/mac80211/wpa.c:452:2 warning:

Value stored to 'hdr' is never read

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
Link: https://lore.kernel.org/r/20211104061411.1744-1-luo.penghao@zte.com.cn
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/wpa.c