From: Daniel Mack <daniel@caiaq.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH 1/2] ALSA: snd_usb_caiaq: give better shortname
Date: Tue, 2 Jun 2009 13:55:59 +0200 [thread overview]
Message-ID: <20090602115559.GH26160@buzzloop.caiaq.de> (raw)
In-Reply-To: <s5hbpp6ucfk.wl%tiwai@suse.de>
On Tue, Jun 02, 2009 at 01:01:35PM +0200, Takashi Iwai wrote:
> > + /* if the id was not passed as module option, fill it with a shortened
> > + * version of the product string which does not contain any
> > + * whitespaces */
> > +
> > + if (*card->id == '\0') {
>
> Hm, at this place, card->id should be never an empty string so
> this is always true.
Are you sure about that? The same condition is used in
snd_card_register() which is called _after_ the code in question from my
driver.
And the id should not be zero if snd_card_create() was called with an id
argument given. So the condition above should be false if the id was passed
before. Or do I miss anything?
Daniel
next prev parent reply other threads:[~2009-06-02 11:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-02 10:36 [PATCH 1/2] ALSA: snd_usb_caiaq: give better shortname Daniel Mack
2009-06-02 10:36 ` [PATCH 2/2] ALSA: snd_usb_caiaq: bump version number Daniel Mack
2009-06-02 11:01 ` [PATCH 1/2] ALSA: snd_usb_caiaq: give better shortname Takashi Iwai
2009-06-02 11:55 ` Daniel Mack [this message]
2009-06-02 12:04 ` 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=20090602115559.GH26160@buzzloop.caiaq.de \
--to=daniel@caiaq.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.