ASoC: Intel: Skylake: sst-utils: remove redundant assignment
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 13 Aug 2020 20:01:44 +0000 (15:01 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 18 Aug 2020 10:50:23 +0000 (11:50 +0100)
Fix cppcheck warning:

sound/soc/intel/skylake/skl-sst-utils.c:240:10: style: Variable 'ret'
is assigned a value that is never used. [unreadVariable]
 int ret = 0;
         ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200813200147.61990-19-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-sst-utils.c

index b233f89..57ea815 100644 (file)
@@ -237,7 +237,7 @@ int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw,
        struct uuid_module *module;
        struct firmware stripped_fw;
        unsigned int safe_file;
-       int ret = 0;
+       int ret;
 
        /* Get the FW pointer to derive ADSP header */
        stripped_fw.data = fw->data;