diff options
author | kbuild test robot <fengguang.wu@intel.com> | 2016-08-01 21:07:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-08 06:54:59 -0400 |
commit | 004d94e5ab01a175523c8e7d205f94fb44274986 (patch) | |
tree | 62814a2beac8620018a659e4c16b63f3238fc3a7 | |
parent | 20fb2fbdfc88abb8b6f102c75c27b6068cec2f69 (diff) |
ASoC: Intel: Skylake: fix noderef.cocci warnings
sound/soc/intel/skylake/skl-topology.c:480:24-30: 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
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/skylake/skl-topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c index a1d9f84d9674..1300e4b9e7d1 100644 --- a/sound/soc/intel/skylake/skl-topology.c +++ b/sound/soc/intel/skylake/skl-topology.c | |||
@@ -477,7 +477,7 @@ skl_tplg_init_pipe_modules(struct skl *skl, struct skl_pipe *pipe) | |||
477 | if (mconfig->id.module_id < 0) { | 477 | if (mconfig->id.module_id < 0) { |
478 | struct skl_dfw_module *dfw_config; | 478 | struct skl_dfw_module *dfw_config; |
479 | 479 | ||
480 | dfw_config = kzalloc(sizeof(dfw_config), GFP_KERNEL); | 480 | dfw_config = kzalloc(sizeof(*dfw_config), GFP_KERNEL); |
481 | if (!dfw_config) | 481 | if (!dfw_config) |
482 | return -ENOMEM; | 482 | return -ENOMEM; |
483 | 483 | ||