Searched hist:"50 e81116ef576b58384c8829bd767b5decbc2968" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/soc/amd/vangogh/ |
H A D | acp5x-mach.c | diff 50e81116ef576b58384c8829bd767b5decbc2968 Fri Feb 17 05:08:44 CST 2023 Lucas Tanure <lucas.tanure@collabora.com> ASoC: amd: vangogh: use sizeof of variable instead of struct type
Use sizeof(*machine) instead of sizeof(struct acp5x_platform_info)
There is a possibility of bug when variable type has changed but corresponding struct passed to the sizeof has not.
Signed-off-by: Lucas Tanure <lucas.tanure@collabora.com> Link: https://lore.kernel.org/r/20230217110850.1045250-4-lucas.tanure@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
|