]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: hdmi-codec: use sizeof_field rather than declaring hcp
authorColin Ian King <colin.king@canonical.com>
Mon, 18 Sep 2017 09:48:43 +0000 (10:48 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2017 11:57:32 +0000 (12:57 +0100)
commit0607aa3cd824bddf85fa5174fe4be34af5a429fb
tree2681eac2b7489bcdaac4bc06256b0bba9e764ac2
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
ASoC: hdmi-codec: use sizeof_field rather than declaring hcp

Use FIELD_SIZEOF rather than declaring and initializing hcp. Remove
unused variables. Cleans up clang warning:

warning: Value stored to 'hcp' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdmi-codec.c