Skip to content

Commit d6a9224

Browse files
committed
ASoC: qcom: q6dsp: q6adm: remove useless initializations
cppcheck complains about invalid NULL dereferences but there's indeed no need to initialize loop variables. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 1f46a66 commit d6a9224

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/qcom/qdsp6/q6adm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct q6adm_session_map_node_v5 {
9090
static struct q6copp *q6adm_find_copp(struct q6adm *adm, int port_idx,
9191
int copp_idx)
9292
{
93-
struct q6copp *c = NULL;
93+
struct q6copp *c;
9494
struct q6copp *ret = NULL;
9595
unsigned long flags;
9696

@@ -299,7 +299,7 @@ static struct q6copp *q6adm_find_matching_copp(struct q6adm *adm,
299299
int channel_mode, int bit_width,
300300
int app_type)
301301
{
302-
struct q6copp *c = NULL;
302+
struct q6copp *c;
303303
struct q6copp *ret = NULL;
304304
unsigned long flags;
305305

0 commit comments

Comments
 (0)