From: Dan Carpenter Date: Sat, 14 Aug 2010 17:29:53 +0000 (+0200) Subject: ALSA: sound/usb/format: silence uninitialized variable warnings X-Git-Tag: v2.6.36-rc1~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38d7b08f374b640b00d350ac2d12ffed5d723423;p=pandora-kernel.git ALSA: sound/usb/format: silence uninitialized variable warnings Gcc complains that ret might be used uninitialized: sound/usb/format.c: In function ‘snd_usb_parse_audio_format’: sound/usb/format.c:354: warning: ‘ret’ may be used uninitialized in this function sound/usb/format.c:354: note: ‘ret’ was declared here sound/usb/format.c:414: warning: ‘ret’ may be used uninitialized in this function sound/usb/format.c:414: note: ‘ret’ was declared here I suppose it could be uninitialized if there is ever a UAC_VERSION_3 released. Anyway this patch is worthwhile if only to silence the gcc warning. Signed-off-by: Dan Carpenter Acked-by: Daniel Mack Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed