Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: tas5805m: Improve a size determination in tas5805m_i2c_probe()

Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Link: https://patch.msgid.link/6a6c87d3-9e4f-4980-ae06-b0d5e16dd0c0@web.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Markus Elfring and committed by
Mark Brown
0e9f73f1 9e3da795

+1 -1
+1 -1
sound/soc/codecs/tas5805m.c
··· 474 474 return ret; 475 475 } 476 476 477 - tas5805m = devm_kzalloc(dev, sizeof(struct tas5805m_priv), GFP_KERNEL); 477 + tas5805m = devm_kzalloc(dev, sizeof(*tas5805m), GFP_KERNEL); 478 478 if (!tas5805m) 479 479 return -ENOMEM; 480 480