lkml.org 
[lkml]   [2021]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH wireless v3 -next] brcmfmac: Delete useless kfree code
From
Date
Zheng Yongjun <zhengyongjun3@huawei.com> wrote:

> 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>

Patch applied to wireless-drivers-next.git, thanks.

73c655410181 brcmfmac: Delete useless kfree code

--
https://patchwork.kernel.org/project/linux-wireless/patch/20201222135113.20680-1-zhengyongjun3@huawei.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

\
 
 \ /
  Last update: 2021-01-14 18:35    [W:0.040 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site