diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-08-25 12:46:23 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-25 21:53:28 +0200 |
commit | 672072976bf0db6e0aca5382bcf03bc90f439923 (patch) | |
tree | c696d8cf7a3a8d2c16885f170768c30b741a5d7c /sound/soc/codecs/hdac_hdmi.c | |
parent | Merge tag 'v5.9-rc2' into asoc-5.10 (diff) | |
download | linux-672072976bf0db6e0aca5382bcf03bc90f439923.tar.xz linux-672072976bf0db6e0aca5382bcf03bc90f439923.zip |
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>
Diffstat (limited to 'sound/soc/codecs/hdac_hdmi.c')
-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) { |