Commit 4e3aab32 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

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: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200813200147.61990-5-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b0754c55
...@@ -370,7 +370,6 @@ void sst_context_cleanup(struct intel_sst_drv *ctx) ...@@ -370,7 +370,6 @@ void sst_context_cleanup(struct intel_sst_drv *ctx)
kfree(ctx->fw_in_mem); kfree(ctx->fw_in_mem);
ctx->fw_in_mem = NULL; ctx->fw_in_mem = NULL;
sst_memcpy_free_resources(ctx); sst_memcpy_free_resources(ctx);
ctx = NULL;
} }
EXPORT_SYMBOL_GPL(sst_context_cleanup); EXPORT_SYMBOL_GPL(sst_context_cleanup);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment