Fix a brain-o: wrong case statement semantics.
Found with: clang
This commit is contained in:
parent
a6d8c83fd9
commit
577fedb6b1
@ -2236,7 +2236,8 @@ envy24ht_putcfg(struct sc_info *sc)
|
||||
else
|
||||
printf("not implemented\n");
|
||||
switch (sc->adcn) {
|
||||
case 0x01 || 0x02:
|
||||
case 0x01:
|
||||
case 0x02:
|
||||
printf(" ADC #: ");
|
||||
printf("%d\n", sc->adcn);
|
||||
break;
|
||||
|
@ -283,7 +283,8 @@ spicds_set(struct spicds_info *codec, int dir, unsigned int left, unsigned int r
|
||||
case SPICDS_TYPE_WM8770:
|
||||
left = left + 27;
|
||||
break;
|
||||
case SPICDS_TYPE_AK4381 || SPICDS_TYPE_AK4396:
|
||||
case SPICDS_TYPE_AK4381:
|
||||
case SPICDS_TYPE_AK4396:
|
||||
left = left * 255 / 100;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user