ASoC: da7219: Use logical instead of bitwise OR for boolean expression
[deliverable/linux.git] / sound / soc / codecs / da7219.c
index f238c1e8a69c16e92649b878edfe07b772c8cd59..e36a7b79b49490c95f897bc921a504aafa4aa730 100644 (file)
@@ -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);
This page took 0.025069 seconds and 5 git commands to generate.