提交 01fb592f 编写于 作者: A Aishwarya Pant 提交者: Greg Kroah-Hartman

staging: bcm2835-audio: move logical continuation to the same line

Keep logical continuations on the same line to improve code readability
Signed-off-by: NAishwarya Pant <aishpant@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d561c885
...@@ -122,8 +122,7 @@ static int snd_bcm2835_ctl_put(struct snd_kcontrol *kcontrol, ...@@ -122,8 +122,7 @@ static int snd_bcm2835_ctl_put(struct snd_kcontrol *kcontrol,
changed = 1; /* should return 0 to signify no change but the mixer takes this as the opposite sign (no idea why) */ changed = 1; /* should return 0 to signify no change but the mixer takes this as the opposite sign (no idea why) */
goto unlock; goto unlock;
} }
if (changed if (changed || (ucontrol->value.integer.value[0] != chip2alsa(chip->volume))) {
|| (ucontrol->value.integer.value[0] != chip2alsa(chip->volume))) {
chip->volume = alsa2chip(ucontrol->value.integer.value[0]); chip->volume = alsa2chip(ucontrol->value.integer.value[0]);
changed = 1; changed = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册