LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 10/12] sound: au88x0_pcm.c fix integer as NULL pointer warning
Date: Thu, 28 Feb 2008 12:08:45 +0100 [thread overview]
Message-ID: <s5hir09s5he.wl%tiwai@suse.de> (raw)
In-Reply-To: <1204160169.20280.58.camel@brick>
At Wed, 27 Feb 2008 16:56:08 -0800,
Harvey Harrison wrote:
>
> sound/pci/au88x0/au88x0_pcm.c:508:15: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
> ---
> sound/pci/au88x0/au88x0_pcm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/sound/pci/au88x0/au88x0_pcm.c b/sound/pci/au88x0/au88x0_pcm.c
> index 526c6c5..232eb80 100644
> --- a/sound/pci/au88x0/au88x0_pcm.c
> +++ b/sound/pci/au88x0/au88x0_pcm.c
> @@ -505,7 +505,7 @@ static int __devinit snd_vortex_new_pcm(vortex_t * chip, int idx, int nr)
> int i;
> int err, nr_capt;
>
> - if ((chip == 0) || (idx < 0) || (idx >= VORTEX_PCM_LAST))
> + if ((chip == NULL) || (idx < 0) || (idx >= VORTEX_PCM_LAST))
"if (!chip)" is the standard style. Let's fix in that way.
Also, strip unneeded parentheses.
thanks,
Takashi
next prev parent reply other threads:[~2008-02-28 11:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-28 0:56 [PATCH 10/12] sound: au88x0_pcm.c fix integer as NULL pointer warning Harvey Harrison
2008-02-28 11:08 ` Takashi Iwai [this message]
2008-02-28 18:06 ` [PATCH 10/12v2] " Harvey Harrison
2008-02-29 11: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=s5hir09s5he.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=akpm@linux-foundation.org \
--cc=harvey.harrison@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).