Fix a brain-o: wrong case statement semantics.

Found with:	clang
This commit is contained in:
Rui Paulo 2010-10-13 14:39:54 +00:00
parent a6d8c83fd9
commit 577fedb6b1
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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: