Re: wifi: wfx: Remove redundant NULL check before release_firmware() call

From: Kalle Valo
Date: Fri Jun 10 2022 - 03:39:30 EST


cgel.zte@xxxxxxxxx wrote:

> From: Minghao Chi <chi.minghao@xxxxxxxxxx>
>
> release_firmware() checks for NULL pointers internally so checking
> before calling it is redundant.
>
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> Signed-off-by: Minghao Chi <chi.minghao@xxxxxxxxxx>
> Acked-by: Jérôme Pouiller <jerome.pouiller@xxxxxxxxxx>

Patch applied to wireless-next.git, thanks.

05a2eebfa650 wifi: wfx: Remove redundant NULL check before release_firmware() call

--
https://patchwork.kernel.org/project/linux-wireless/patch/20220606014237.290466-1-chi.minghao@xxxxxxxxxx/

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