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:
Родитель
8005c49d9a
Коммит
a737447d08
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче