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)
commit73c655410181b7fc9a5ff321a5021a684ada99e7
tree37543bac5eef043fd294719a7ec1c1d80e901a07
parent0924ba9fbc26860b4b57b424e402d4b16d40cc91
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