瀏覽代碼

ALSA: sound/ppc/powermac: remove undefined operations

Modifying an object twice without an intervening sequence point is
undefined.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Andreas Schwab 14 年之前
父節點
當前提交
7b6c3a34e9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/ppc/tumbler.c

+ 1 - 1
sound/ppc/tumbler.c

@@ -785,7 +785,7 @@ static int snapper_set_capture_source(struct pmac_tumbler *mix)
 	if (! mix->i2c.client)
 		return -ENODEV;
 	if (mix->capture_source)
-		mix->acs = mix->acs |= 2;
+		mix->acs |= 2;
 	else
 		mix->acs &= ~2;
 	return i2c_smbus_write_byte_data(mix->i2c.client, TAS_REG_ACS, mix->acs);