Commit ee71faf
ASoC: atmel: fix a pair of Wtautological-overlap-compare
Clang complains:
sound/soc/atmel/mchp-asrc-card.c:493:33: error: overlapping comparisons always evaluate to false [-Werror,-Wtautological-overlap-compare]
if (priv->convert_channels < 1 && priv->convert_channels > 8) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/atmel/mchp-asrc-card.c:478:32: error: overlapping comparisons always evaluate to false [-Werror,-Wtautological-overlap-compare]
if (priv->convert_rate < 8000 && priv->convert_rate > 192000) {
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
It would appear that these were meant to be ensuring the value lies with
in the range, so swap them both to ||.
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from linux-6.1-trunk/at91/sound)
Signed-off-by: Andrei Simion <andrei.simion@microchip.com>1 parent efcad13 commit ee71faf
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
0 commit comments