[1/2] wifi: at76c50x: use sizeof(*pointer) instead of sizeof(type)

Kalle Valo kvalo at kernel.org
Wed Jun 12 05:00:45 PDT 2024


Erick Archer <erick.archer at outlook.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 at outlook.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




More information about the linux-arm-kernel mailing list