提交 004d94e5 编写于 作者: K kbuild test robot 提交者: Mark Brown

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: NFengguang Wu <fengguang.wu@intel.com>
Acked-by: NVinod Koul <vinod.koul@intel.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 20fb2fbd
......@@ -477,7 +477,7 @@ skl_tplg_init_pipe_modules(struct skl *skl, struct skl_pipe *pipe)
if (mconfig->id.module_id < 0) {
struct skl_dfw_module *dfw_config;
dfw_config = kzalloc(sizeof(dfw_config), GFP_KERNEL);
dfw_config = kzalloc(sizeof(*dfw_config), GFP_KERNEL);
if (!dfw_config)
return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册