From: Pierre-Louis Bossart Date: Thu, 13 Aug 2020 20:01:30 +0000 (-0500) Subject: ASoC: Intel: Atom: sst: remove useless NULL assignment X-Git-Tag: v5.15~2476^2^2~181^2~17 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4e3aab3217cdd1506ff89642e554995cbfa0806a;p=mirror_ubuntu-kernels.git 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 Link: https://lore.kernel.org/r/20200813200147.61990-5-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- 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);