Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758623AbYB1LJK (ORCPT ); Thu, 28 Feb 2008 06:09:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757414AbYB1LIs (ORCPT ); Thu, 28 Feb 2008 06:08:48 -0500 Received: from ns.suse.de ([195.135.220.2]:57392 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757058AbYB1LIr (ORCPT ); Thu, 28 Feb 2008 06:08:47 -0500 Date: Thu, 28 Feb 2008 12:08:45 +0100 Message-ID: From: Takashi Iwai To: Harvey Harrison Cc: Andrew Morton , LKML Subject: Re: [PATCH 10/12] sound: au88x0_pcm.c fix integer as NULL pointer warning In-Reply-To: <1204160169.20280.58.camel@brick> References: <1204160169.20280.58.camel@brick> User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.5 (beta28) (fuki) (+CVS-20070806) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1119 Lines: 33 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 > --- > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/