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

Commit 64895739 authored by Nenghua Cao's avatar Nenghua Cao Committed by Mark Brown
Browse files

asoc: soc-core: fix coccinelle warnings

sound/soc/soc-core.c:2708:6-13: WARNING: Assignment of
bool to 0/1
sound/soc/soc-core.c:2726:3-10: WARNING: Assignment of
bool to 0/1

    More information about semantic patching is available at
http://coccinelle.lip6.fr/



Signed-off-by: default avatarNenghua Cao <nhcao@marvell.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 74d04c3e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2818,7 +2818,7 @@ int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
	unsigned int mask = (1 << fls(max)) - 1;
	unsigned int mask = (1 << fls(max)) - 1;
	unsigned int invert = mc->invert;
	unsigned int invert = mc->invert;
	int err;
	int err;
	bool type_2r = 0;
	bool type_2r = false;
	unsigned int val2 = 0;
	unsigned int val2 = 0;
	unsigned int val, val_mask;
	unsigned int val, val_mask;


@@ -2836,7 +2836,7 @@ int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
			val |= val2 << rshift;
			val |= val2 << rshift;
		} else {
		} else {
			val2 = val2 << shift;
			val2 = val2 << shift;
			type_2r = 1;
			type_2r = true;
		}
		}
	}
	}
	err = snd_soc_update_bits_locked(codec, reg, val_mask, val);
	err = snd_soc_update_bits_locked(codec, reg, val_mask, val);