From: Daniel Mack Date: Mon, 18 Jun 2012 19:16:31 +0000 (+0200) Subject: ALSA: snd-usb-caiaq: initialize card pointer X-Git-Tag: v3.6-rc1~17^2~17^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da185443c12f5ef7416af50293833a5654854186;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git ALSA: snd-usb-caiaq: initialize card pointer Fixes the following warning: CC [M] sound/usb/caiaq/device.o sound/usb/caiaq/device.c: In function ‘snd_probe’: sound/usb/caiaq/device.c:500:16: warning: ‘card’ may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Daniel Mack Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/caiaq/device.c b/sound/usb/caiaq/device.c index 64aed43..7da0d0a 100644 --- a/sound/usb/caiaq/device.c +++ b/sound/usb/caiaq/device.c @@ -485,7 +485,7 @@ static int __devinit snd_probe(struct usb_interface *intf, const struct usb_device_id *id) { int ret; - struct snd_card *card; + struct snd_card *card = NULL; struct usb_device *device = interface_to_usbdev(intf); ret = create_card(device, intf, &card);