diff options
author | kbuild test robot <fengguang.wu@intel.com> | 2018-10-23 20:20:22 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-10-24 11:27:19 +0100 |
commit | 409fa67a7f4a68f6990955849c22eaca589f18c0 (patch) | |
tree | afe65976d6814e123245d80f6edd9c166ec2cef8 /sound | |
parent | 6be0f96d799f487f05eb412d362d5a1747d665c2 (diff) | |
download | talos-obmc-linux-409fa67a7f4a68f6990955849c22eaca589f18c0.tar.gz talos-obmc-linux-409fa67a7f4a68f6990955849c22eaca589f18c0.zip |
ASoC: stm32: sai: fix noderef.cocci warnings
sound/soc/stm/stm32_sai_sub.c:393:26-32: ERROR: application of sizeof to pointer
sizeof when applied to a pointer typed expression gives the size of
the pointer
Generated by: scripts/coccinelle/misc/noderef.cocci
Fixes: 8307b2afd386 ("ASoC: stm32: sai: set sai as mclk clock provider")
CC: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/stm/stm32_sai_sub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index ea05cc91aa05..211589b0b2ef 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -390,7 +390,7 @@ static int stm32_sai_add_mclk_provider(struct stm32_sai_sub_data *sai) char *mclk_name, *p, *s = (char *)pname; int ret, i = 0; - mclk = devm_kzalloc(dev, sizeof(mclk), GFP_KERNEL); + mclk = devm_kzalloc(dev, sizeof(*mclk), GFP_KERNEL); if (!mclk) return -ENOMEM; |