From ce4e1ae9d7740322613565a1ec6857f8d784edd3 Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Sat, 10 Jul 2021 15:33:46 -0700 Subject: [PATCH] ASoC: dsp: msm-dts-srs-tm-config: Fix trivial unguarded pr_debug() Change-Id: If2b6b67afafddc749557a2230582fbacd1c85c26 Signed-off-by: Sultan Alsawaf [dereference23: Extend to audio-kernel 4.0] Signed-off-by: Alexander Winkowski --- techpack/audio/4.0/dsp/msm-dts-srs-tm-config.c | 1 + techpack/audio/dsp/msm-dts-srs-tm-config.c | 1 + 2 files changed, 2 insertions(+) diff --git a/techpack/audio/4.0/dsp/msm-dts-srs-tm-config.c b/techpack/audio/4.0/dsp/msm-dts-srs-tm-config.c index 9c503b90528d..cc7fe64aaed4 100755 --- a/techpack/audio/4.0/dsp/msm-dts-srs-tm-config.c +++ b/techpack/audio/4.0/dsp/msm-dts-srs-tm-config.c @@ -296,6 +296,7 @@ static int reg_ion_mem(void) &po.kvaddr); if (rc != 0) pr_err("%s: failed to allocate memory.\n", __func__); + else pr_debug("%s: exited dma_buf = %pK, phys_addr = %lu, length = %d, vaddr = %pK, rc = 0x%x\n", __func__, dma_buf, (long)po.paddr, (unsigned int)po.size, po.kvaddr, rc); diff --git a/techpack/audio/dsp/msm-dts-srs-tm-config.c b/techpack/audio/dsp/msm-dts-srs-tm-config.c index fff98b57287c..e327c23259ce 100755 --- a/techpack/audio/dsp/msm-dts-srs-tm-config.c +++ b/techpack/audio/dsp/msm-dts-srs-tm-config.c @@ -303,6 +303,7 @@ static int reg_ion_mem(void) &po.kvaddr); if (rc != 0) pr_err("%s: failed to allocate memory.\n", __func__); + else pr_debug("%s: exited dma_buf = %pK, phys_addr = %lu, length = %d, vaddr = %pK, rc = 0x%x\n", __func__, dma_buf, (long)po.paddr, (unsigned int)po.size, po.kvaddr, rc);