ALSA: snd-usb-caiaq: initialize card pointer
authorDaniel Mack <zonque@gmail.com>
Mon, 18 Jun 2012 19:16:31 +0000 (21:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 Jun 2012 10:26:19 +0000 (12:26 +0200)
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 <zonque@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/caiaq/device.c

index 64aed432ae2213dfaca6dba0818ccca8cc38352c..7da0d0aa72cb1b31b88865371c9584e13fbd54e4 100644 (file)
@@ -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);