diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-08-25 13:46:23 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-25 20:53:28 +0100 |
commit | 672072976bf0db6e0aca5382bcf03bc90f439923 (patch) | |
tree | c696d8cf7a3a8d2c16885f170768c30b741a5d7c | |
parent | afa86a047edef28004fb3d2a47d3d90309a830a5 (diff) | |
download | linux-672072976bf0db6e0aca5382bcf03bc90f439923.tar.bz2 |
ASoC: hdac_hdmi: tidy up a memset()
The ARRAY_SIZE() is the number of the elements but we want to use the
number of bytes. Fortunately, in this case the value is the same so it
doesn't affect runtime.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200825104623.GA278587@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/hdac_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index 869d1547ae5d..c61cce53f513 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c @@ -1474,7 +1474,7 @@ static int hdac_hdmi_eld_ctl_get(struct snd_kcontrol *kcontrol, struct hdac_hdmi_port *port; struct hdac_hdmi_eld *eld; - memset(ucontrol->value.bytes.data, 0, ARRAY_SIZE(ucontrol->value.bytes.data)); + memset(ucontrol->value.bytes.data, 0, sizeof(ucontrol->value.bytes.data)); pcm = get_hdmi_pcm_from_id(hdmi, kcontrol->id.device); if (!pcm) { |