Skip to content

Commit

Permalink
ALSA: usb-audio: fix uninitialized variable compile warning
Browse files Browse the repository at this point in the history
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 <mpatocka@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Mikulas Patocka authored and Takashi Iwai committed Dec 5, 2013
1 parent b1e8972 commit 18e4753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/mixer_quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 18e4753

Please sign in to comment.