Commit 01fb592f authored by Aishwarya Pant's avatar Aishwarya Pant Committed by 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: default avatarAishwarya Pant <aishpant@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment