diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-10-24 14:28:33 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-16 10:01:16 +0000 |
commit | a737447d080929c54c664adc9c62eadab9e86d3e (patch) | |
tree | 888b02c1b236e7ea6875a7aa69888413d24579d7 /sound/soc/codecs/da7219.c | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) | |
download | linux-a737447d080929c54c664adc9c62eadab9e86d3e.tar.bz2 |
ASoC: da7219: Use logical instead of bitwise OR for boolean expression
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7219.c')
-rw-r--r-- | sound/soc/codecs/da7219.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index f238c1e8a69c..e36a7b79b494 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c @@ -1306,7 +1306,7 @@ static int da7219_hw_params(struct snd_pcm_substream *substream, } channels = params_channels(params); - if ((channels < 1) | (channels > DA7219_DAI_CH_NUM_MAX)) { + if ((channels < 1) || (channels > DA7219_DAI_CH_NUM_MAX)) { dev_err(codec->dev, "Invalid number of channels, only 1 to %d supported\n", DA7219_DAI_CH_NUM_MAX); |