ALSA: usb-audio: remove assignment from if condition
authorEldad Zack <eldad@fogrefinery.com>
Sat, 3 Aug 2013 08:50:16 +0000 (10:50 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 6 Aug 2013 08:48:22 +0000 (10:48 +0200)
Following general kernel style.

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c

index 3d3e8d1..be5c7c2 100644 (file)
@@ -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;