From: Mikulas Patocka Date: Thu, 5 Dec 2013 19:32:43 +0000 (-0500) Subject: ALSA: usb-audio: fix uninitialized variable compile warning X-Git-Tag: v5.15~18496^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18e4753ff3c8f5a1f21d8ec7ab506c49a0dfb32f;p=platform%2Fkernel%2Flinux-starfive.git ALSA: usb-audio: fix uninitialized variable compile warning Fix the following warning when optimizing for size with gcc-4.6.4: sound/usb/mixer_quirks.c:1514:6: warning: 'err' may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Mikulas Patocka Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c index 3454262..f4b12c2 100644 --- a/sound/usb/mixer_quirks.c +++ b/sound/usb/mixer_quirks.c @@ -1603,7 +1603,7 @@ static int snd_microii_controls_create(struct usb_mixer_interface *mixer) return err; } - return err; + return 0; } int snd_usb_mixer_apply_create_quirk(struct usb_mixer_interface *mixer)