Browse Source

Merge "ASoC: dsp: correct return value check"

Linux Build Service Account 6 years ago
parent
commit
56d0f0500e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dsp/q6adm.c

+ 1 - 1
dsp/q6adm.c

@@ -644,7 +644,7 @@ int adm_programable_channel_mixer(int port_id, int copp_idx, int session_id,
 	index = index + ch_mixer->input_channels[channel_index];
 	ret = adm_populate_channel_weight(&adm_pspd_params[index],
 					ch_mixer, channel_index);
-	if (!ret) {
+	if (ret) {
 		pr_err("%s: fail to get channel weight with error %d\n",
 			__func__, ret);
 		goto fail_cmd;