[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <172431722965.2217900.9384549285038078950.kvalo@kernel.org>
Date: Thu, 22 Aug 2024 09:00:31 +0000 (UTC)
From: Kalle Valo <kvalo@...nel.org>
To: Sascha Hauer <s.hauer@...gutronix.de>
Cc: Brian Norris <briannorris@...omium.org>,
Francesco Dolcini <francesco@...cini.it>, linux-wireless@...r.kernel.org,
linux-kernel@...r.kernel.org, Sascha Hauer <s.hauer@...gutronix.de>
Subject: Re: [PATCH] wifi: mwifiex: remove unnecessary checks for valid priv
Sascha Hauer <s.hauer@...gutronix.de> wrote:
> The pointers in adapter->priv[] are allocated in mwifiex_register().
> With an allocation failed the function will return an error and
> driver initialization is aborted. This makes all checks for valid
> priv pointers unnecessary throughout the driver. In many places
> the pointers are assumed to be valid without checks, this patch
> removes the remaining checks.
>
> Signed-off-by: Sascha Hauer <s.hauer@...gutronix.de>
> Acked-by: Brian Norris <briannorris@...omium.org>
Patch applied to wireless-next.git, thanks.
67a72043aa2e wifi: mwifiex: remove unnecessary checks for valid priv
--
https://patchwork.kernel.org/project/linux-wireless/patch/20240816-mwifiex-remove-priv-checks-v1-1-6dd6553e8ed9@pengutronix.de/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists