Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd470fae authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown
Browse files

ASoC: Intel: Skylake: Fix test of a field address



Skylake driver uses snd_dma_buffer for data and buffer, these are variables
and not pointer so do not test field addresses.

Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 07f083ab
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -138,9 +138,7 @@ static void skl_cldma_cleanup(struct sst_dsp *ctx)
	sst_dsp_shim_write(ctx, SKL_ADSP_REG_CL_SD_CBL, 0);
	sst_dsp_shim_write(ctx, SKL_ADSP_REG_CL_SD_LVI, 0);

	if (&ctx->cl_dev.dmab_data)
	ctx->dsp_ops.free_dma_buf(ctx->dev, &ctx->cl_dev.dmab_data);
	if (&ctx->cl_dev.dmab_bdl)
	ctx->dsp_ops.free_dma_buf(ctx->dev, &ctx->cl_dev.dmab_bdl);
}