Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4c02e6e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm: qdsp6v2: Fix impossible check" into msm-4.9

parents e299ad12 1c9a56c5
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -394,12 +394,13 @@ static int msm_voice_sidetone_put(struct snd_kcontrol *kcontrol,
					struct snd_ctl_elem_value *ucontrol)
{
	int ret;
	bool sidetone_enable = ucontrol->value.integer.value[0];
	long value = ucontrol->value.integer.value[0];
	bool sidetone_enable = value;
	uint32_t session_id = ALL_SESSION_VSID;

	if (sidetone_enable < 0) {
		pr_err("%s: Invalid arguments sidetone enable %d\n",
			 __func__, sidetone_enable);
	if (value < 0) {
		pr_err("%s: Invalid arguments sidetone enable %ld\n",
			 __func__, value);
		ret = -EINVAL;
		return ret;
	}