Merge "ASoC: dsp: correct return value check"
diff --git a/dsp/q6adm.c b/dsp/q6adm.c
index ce297e1..1596418 100644
--- a/dsp/q6adm.c
+++ b/dsp/q6adm.c
@@ -793,7 +793,7 @@
 	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;