aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/atom
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2020-08-13 15:01:30 -0500
committerMark Brown <broonie@kernel.org>2020-08-18 11:50:11 +0100
commit4e3aab3217cdd1506ff89642e554995cbfa0806a (patch)
tree0705e49a005853fa3b2ef5eb3d01ad8ad2f2f5c4 /sound/soc/intel/atom
parentASoC: Intel: Atom: platform-pcm: remove redundant assignment (diff)
downloadlinux-dev-4e3aab3217cdd1506ff89642e554995cbfa0806a.tar.xz
linux-dev-4e3aab3217cdd1506ff89642e554995cbfa0806a.zip
ASoC: Intel: Atom: sst: remove useless NULL assignment
Fix cppcheck warnings: sound/soc/intel/atom/sst/sst.c:373:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] ctx = NULL; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200813200147.61990-5-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/atom')
-rw-r--r--sound/soc/intel/atom/sst/sst.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/intel/atom/sst/sst.c b/sound/soc/intel/atom/sst/sst.c
index d6563985e008..1d1c58e48f42 100644
--- a/sound/soc/intel/atom/sst/sst.c
+++ b/sound/soc/intel/atom/sst/sst.c
@@ -370,7 +370,6 @@ void sst_context_cleanup(struct intel_sst_drv *ctx)
kfree(ctx->fw_in_mem);
ctx->fw_in_mem = NULL;
sst_memcpy_free_resources(ctx);
- ctx = NULL;
}
EXPORT_SYMBOL_GPL(sst_context_cleanup);