]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: delete redundant free code
authorliuguoqiang <liuguoqiang@uniontech.com>
Mon, 15 Nov 2021 09:21:39 +0000 (17:21 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Nov 2021 10:49:17 +0000 (11:49 +0100)
commitd071cd3e7f092110efb846a37b03506d23dfb1fd
tree6c6bf9b9eb57c03c510b463cd33b4e44a3742ad5
parentfb61edd3da411dcf70285522952424cc55a884a0
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: liuguoqiang <liuguoqiang@uniontech.com>
Link: https://lore.kernel.org/r/20211115092139.24407-1-liuguoqiang@uniontech.com
[remove now unused creq = NULL assigment]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c