Re: [PATCH] wl1251: cmd: remove redundant assignment

From: Kalle Valo
Date: Mon Feb 08 2021 - 06:37:25 EST


samirweng1979 <samirweng1979@xxxxxxx> wrote:

> From: wengjianfeng <wengjianfeng@xxxxxxxxxx>
>
> -ENOMEM has been used as a return value,it is not necessary to
> assign it, and if kzalloc fail,not need free it,so just return
> -ENOMEM when kzalloc fail.
>
> Signed-off-by: wengjianfeng <wengjianfeng@xxxxxxxxxx>

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

05d7f3307488 wl1251: cmd: remove redundant assignment

--
https://patchwork.kernel.org/project/linux-wireless/patch/20210203060306.2832-1-samirweng1979@xxxxxxx/

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