Skip to content

Commit

Permalink
ASoC: da7219: Use logical instead of bitwise OR for boolean expression
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Nov 16, 2015
1 parent 8005c49 commit a737447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/da7219.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a737447

Please sign in to comment.