Skip to content

Commit d133f2c

Browse files
eldadtiwai
authored andcommitted
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>
1 parent d833cdb commit d133f2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/usb/pcm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,8 @@ static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt)
479479
subs->data_endpoint->sync_master = subs->sync_endpoint;
480480
}
481481

482-
if ((err = snd_usb_init_pitch(subs->stream->chip, fmt->iface, alts, fmt)) < 0)
482+
err = snd_usb_init_pitch(subs->stream->chip, fmt->iface, alts, fmt);
483+
if (err < 0)
483484
return err;
484485

485486
subs->cur_audiofmt = fmt;

0 commit comments

Comments
 (0)