mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 23:23:53 +02:00
ALSA: snd-usb-caiaq: initialize card pointer
commit da185443c1 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>
This commit is contained in:
parent
2214cc8d58
commit
d4cad86a44
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user