Skip to content

Commit

Permalink
asoc: soc-core: fix coccinelle warnings
Browse files Browse the repository at this point in the history
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: Nenghua Cao <nhcao@marvell.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Nenghua Cao authored and Mark Brown committed Mar 4, 2014
1 parent 74d04c3 commit 6489573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2818,7 +2818,7 @@ int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
unsigned int mask = (1 << fls(max)) - 1;
unsigned int invert = mc->invert;
int err;
bool type_2r = 0;
bool type_2r = false;
unsigned int val2 = 0;
unsigned int val, val_mask;

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

0 comments on commit 6489573

Please sign in to comment.