Skip to content

Commit 9d8dbf8

Browse files
bardliaoranj063
authored andcommitted
fixup! ASoC: SOF: debug_dsp_ops: Add op to test DSP power state changes
Reported by analyzer-use-of-uninitialized-value sound/soc/sof/debug-dsp-ops.c:216:19: error: use of uninitialized value ‘string’ [CWE-457] [-Werror=analyzer-use-of-uninitialized-value] The ‘string’ will not be assigned in the default case of switch (sdev->dsp_power_state.state) and (sdev->dsp_power_state.substate). Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 5376d68 commit 9d8dbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sof/debug-dsp-ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ static ssize_t sof_dsp_ops_tester_dfs_read(struct file *file, char __user *buffe
177177
{
178178
struct snd_sof_dfsentry *dfse = file->private_data;
179179
struct snd_sof_dev *sdev = dfse->sdev;
180+
const char *string = NULL;
180181
struct dentry *dentry;
181-
const char *string;
182182
size_t size_ret;
183183

184184
/* return the FW filename or path */

0 commit comments

Comments
 (0)