ASoC: Intel: Skylake: Fix test of a field address
authorVinod Koul <vinod.koul@intel.com>
Sun, 22 Nov 2015 10:54:57 +0000 (16:24 +0530)
committerMark Brown <broonie@kernel.org>
Sun, 22 Nov 2015 12:48:11 +0000 (12:48 +0000)
Skylake driver uses snd_dma_buffer for data and buffer, these are variables
and not pointer so do not test field addresses.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-sst-cldma.c

index b03d9db0acada60b60c3e25f206ab3270f19af19..947a08e42e8604092dee3264d53ad6cdbe2d6fa1 100644 (file)
@@ -138,10 +138,8 @@ 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);
+       ctx->dsp_ops.free_dma_buf(ctx->dev, &ctx->cl_dev.dmab_data);
+       ctx->dsp_ops.free_dma_buf(ctx->dev, &ctx->cl_dev.dmab_bdl);
 }
 
 static int skl_cldma_wait_interruptible(struct sst_dsp *ctx)