From: Mikulas Patocka Date: Thu, 5 Dec 2013 19:32:43 +0000 (-0500) Subject: ALSA: usb-audio: fix uninitialized variable compile warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18e4753ff3c8f5a1f21d8ec7ab506c49a0dfb32f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 3454262358b3..f4b12c216f1c 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)