Skip to content
Snippets Groups Projects
Commit d133f2c2 authored by Eldad Zack's avatar Eldad Zack Committed by Takashi Iwai
Browse files

ALSA: usb-audio: remove assignment from if condition


Following general kernel style.

Signed-off-by: default avatarEldad Zack <eldad@fogrefinery.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d833cdb1
No related branches found
No related tags found
No related merge requests found
...@@ -479,7 +479,8 @@ static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt) ...@@ -479,7 +479,8 @@ static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt)
subs->data_endpoint->sync_master = subs->sync_endpoint; 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; return err;
subs->cur_audiofmt = fmt; subs->cur_audiofmt = fmt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment