From: Daniel Mack <zonque@gmail.com>
To: tiwai@suse.de
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA: snd-usb-caiaq: initialize card pointer
Date: Wed, 27 Jun 2012 09:57:18 +0200 [thread overview]
Message-ID: <4FEABCDE.2080905@gmail.com> (raw)
In-Reply-To: <1340046991-23552-1-git-send-email-zonque@gmail.com>
ping
On 18.06.2012 21:16, Daniel Mack wrote:
> 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>
> ---
> sound/usb/caiaq/device.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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);
>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2012-06-27 7:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-18 19:16 [PATCH] ALSA: snd-usb-caiaq: initialize card pointer Daniel Mack
2012-06-27 7:57 ` Daniel Mack [this message]
2012-06-27 10:30 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FEABCDE.2080905@gmail.com \
--to=zonque@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox