]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: cs42l56: Improve two size determinations in cs42l56_i2c_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 23 Nov 2017 08:33:15 +0000 (09:33 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Nov 2017 13:00:36 +0000 (13:00 +0000)
commite8d8b98c0a6edab5d6cc0292e1ed603d8d4ff5b6
tree16bfc53a7544e921cbe2e33d74f2dfef26c240ed
parent277631ccff503f2a8e8150574c9773a8383fc926
ASoC: cs42l56: Improve two size determinations in cs42l56_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/cs42l56.c