diff options
author | Daniel Mack <zonque@gmail.com> | 2012-06-18 21:16:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 11:46:36 -0800 |
commit | d4cad86a445a5229b58bbb7beaa0753f09314855 (patch) | |
tree | b33d882f88993ec040550383c74c9eb9881b2c2c /sound/usb | |
parent | 2214cc8d585df2bbfc894d0a3acc5a629fa1a985 (diff) | |
download | linux-3.10-d4cad86a445a5229b58bbb7beaa0753f09314855.tar.gz linux-3.10-d4cad86a445a5229b58bbb7beaa0753f09314855.tar.bz2 linux-3.10-d4cad86a445a5229b58bbb7beaa0753f09314855.zip |
ALSA: snd-usb-caiaq: initialize card pointer
commit da185443c12f5ef7416af50293833a5654854186 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/caiaq/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/caiaq/device.c b/sound/usb/caiaq/device.c index 64aed432ae2..7da0d0aa72c 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); |