]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: Delete useless kfree code
authorZheng Yongjun <zhengyongjun3@huawei.com>
Tue, 22 Dec 2020 13:51:13 +0000 (21:51 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 14 Jan 2021 17:32:03 +0000 (19:32 +0200)
commitf3b52a01dd5b7bd7658ec538dcaf60783184b954
tree37543bac5eef043fd294719a7ec1c1d80e901a07
parentfa740e96067d10fb2665b72e277cc1069f393ebf
brcmfmac: Delete useless kfree code

A null pointer will be passed to a kfree() call after a kzalloc() call failed.
This code is useless. Thus delete the extra function call.

A goto statement is also no longer needed. Thus adjust an if branch.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201222135113.20680-1-zhengyongjun3@huawei.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c