Skip to content
Commit 3536672b authored by liuguoqiang's avatar liuguoqiang Committed by Johannes Berg
Browse files

cfg80211: delete redundant free code



When kzalloc failed and rdev->sacn_req or rdev->scan_msg is null, pass a
null pointer to kfree is redundant, delete it and return directly.

Signed-off-by: default avatarliuguoqiang <liuguoqiang@uniontech.com>
Link: https://lore.kernel.org/r/20211115092139.24407-1-liuguoqiang@uniontech.com


[remove now unused creq = NULL assigment]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent d787a3e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment