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

Commit a737447d authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: da7219: Use logical instead of bitwise OR for boolean expression



Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8005c49d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);