Skip to content

Commit

Permalink
ALSA: snd-usb-caiaq: initialize card pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Mack authored and Takashi Iwai committed Jun 27, 2012
1 parent f3761c3 commit da18544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/caiaq/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit da18544

Please sign in to comment.