]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: cs42l52: Improve two size determinations in cs42l52_i2c_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 22 Nov 2017 21:11:30 +0000 (22:11 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Nov 2017 13:01:07 +0000 (13:01 +0000)
commitcd9e0b8282653d8bdc2c8b799eeb26ee034cdd06
tree3c86ff1b6ed8f7f42d658fb354869ab8a92cf206
parente04db58c1252305e8a4d4178a3cfdbef802cff74
ASoC: cs42l52: Improve two size determinations in cs42l52_i2c_probe()

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

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l52.c