[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <171819364392.3856519.7235762996052092002.kvalo@kernel.org>
Date: Wed, 12 Jun 2024 12:00:45 +0000 (UTC)
From: Kalle Valo <kvalo@...nel.org>
To: Erick Archer <erick.archer@...look.com>
Cc: Nicolas Ferre <nicolas.ferre@...rochip.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Claudiu Beznea <claudiu.beznea@...on.dev>, Kees Cook <keescook@...omium.org>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>, Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Johannes Berg <johannes.berg@...el.com>,
Alan Stern <stern@...land.harvard.edu>,
Erick Archer <erick.archer@...look.com>, linux-wireless@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [1/2] wifi: at76c50x: use sizeof(*pointer) instead of
sizeof(type)
Erick Archer <erick.archer@...look.com> wrote:
> It is preferred to use sizeof(*pointer) instead of sizeof(type)
> due to the type of the variable can change and one needs not
> change the former (unlike the latter). This patch has no effect
> on runtime behavior.
>
> At the same time remove some redundant NULL initializations.
>
> Signed-off-by: Erick Archer <erick.archer@...look.com>
2 patches applied to wireless-next.git, thanks.
aea9165ccfd1 wifi: at76c50x: use sizeof(*pointer) instead of sizeof(type)
bbef1d006cb1 wifi: at76c50x: prefer struct_size over open coded arithmetic
--
https://patchwork.kernel.org/project/linux-wireless/patch/AS8PR02MB7237C784C14DBC943CB719F88BFE2@AS8PR02MB7237.eurprd02.prod.outlook.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists