aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorEldad Zack <eldad@fogrefinery.com>2013-08-03 10:50:16 +0200
committerTakashi Iwai <tiwai@suse.de>2013-08-06 10:48:22 +0200
commitd133f2c22e9cb7b6afd170437cf0ef1e8a1571b6 (patch)
tree95709d4918ce055880f7c723f635d60703993434 /sound
parentd833cdb10cb689ffcbebbf4bae5227072c53f88a (diff)
downloadkernel_goldelico_gta04-d133f2c22e9cb7b6afd170437cf0ef1e8a1571b6.zip
kernel_goldelico_gta04-d133f2c22e9cb7b6afd170437cf0ef1e8a1571b6.tar.gz
kernel_goldelico_gta04-d133f2c22e9cb7b6afd170437cf0ef1e8a1571b6.tar.bz2
ALSA: usb-audio: remove assignment from if condition
Following general kernel style. Signed-off-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/usb/pcm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index 3d3e8d1..be5c7c2 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -479,7 +479,8 @@ add_sync_ep:
subs->data_endpoint->sync_master = subs->sync_endpoint;
}
- if ((err = snd_usb_init_pitch(subs->stream->chip, fmt->iface, alts, fmt)) < 0)
+ err = snd_usb_init_pitch(subs->stream->chip, fmt->iface, alts, fmt);
+ if (err < 0)
return err;
subs->cur_audiofmt = fmt;