Fix a brain-o: wrong case statement semantics.

Found with:	clang
This commit is contained in:
rpaulo 2010-10-13 14:39:54 +00:00
parent 3408e87d47
commit 672e806f1f
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: