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>
This commit is contained in:
parent
8005c49d9a
commit
a737447d08
1 changed files with 1 additions and 1 deletions
|
@ -1306,7 +1306,7 @@ static int da7219_hw_params(struct snd_pcm_substream *substream,
|
||||||
}
|
}
|
||||||
|
|
||||||
channels = params_channels(params);
|
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,
|
dev_err(codec->dev,
|
||||||
"Invalid number of channels, only 1 to %d supported\n",
|
"Invalid number of channels, only 1 to %d supported\n",
|
||||||
DA7219_DAI_CH_NUM_MAX);
|
DA7219_DAI_CH_NUM_MAX);
|
||||||
|
|
Loading…
Add table
Reference in a new issue