From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 26 Jun 2012 14:59:02 +0300 From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH] Bluetooth: Fix warning: using int as NULL pointer Message-ID: <20120626115855.GC22061@aemeltch-MOBL1> References: <1340192412-30161-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1340192412-30161-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Wed, Jun 20, 2012 at 02:40:12PM +0300, Andrei Emeltchenko wrote: > From: Andrei Emeltchenko > > Fix for warnings below: > > ... > drivers/bluetooth/bt3c_cs.c:667:20: warning: Using plain integer > as NULL pointer > drivers/bluetooth/btuart_cs.c:596:20: warning: Using plain integer > as NULL pointer > ... > > Signed-off-by: Andrei Emeltchenko ping > --- > drivers/bluetooth/bt3c_cs.c | 2 +- > drivers/bluetooth/btuart_cs.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c > index b2b0fbb..8925b6d 100644 > --- a/drivers/bluetooth/bt3c_cs.c > +++ b/drivers/bluetooth/bt3c_cs.c > @@ -664,7 +664,7 @@ static int bt3c_check_config(struct pcmcia_device *p_dev, void *priv_data) > { > int *try = priv_data; > > - if (try == 0) > + if (!try) > p_dev->io_lines = 16; > > if ((p_dev->resource[0]->end != 8) || (p_dev->resource[0]->start == 0)) > diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c > index 65b8d99..21e803a 100644 > --- a/drivers/bluetooth/btuart_cs.c > +++ b/drivers/bluetooth/btuart_cs.c > @@ -593,7 +593,7 @@ static int btuart_check_config(struct pcmcia_device *p_dev, void *priv_data) > { > int *try = priv_data; > > - if (try == 0) > + if (!try) > p_dev->io_lines = 16; > > if ((p_dev->resource[0]->end != 8) || (p_dev->resource[0]->start == 0)) > -- > 1.7.9.5 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html