提交 7b6c3a34 编写于 作者: A Andreas Schwab 提交者: Takashi Iwai

ALSA: sound/ppc/powermac: remove undefined operations

Modifying an object twice without an intervening sequence point is
undefined.
Signed-off-by: NAndreas Schwab <schwab@linux-m68k.org>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 a254dba3
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册