Bluetooth: Fix warning: using int as NULL pointer
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Wed, 20 Jun 2012 11:40:12 +0000 (14:40 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 30 Jun 2012 15:07:14 +0000 (12:07 -0300)
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 <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
drivers/bluetooth/bt3c_cs.c
drivers/bluetooth/btuart_cs.c

index b2b0fbbb43b5dd152878747b9befdf6fc27f5418..8925b6d672a6ef7c14dc89741e7662fc3e057ef4 100644 (file)
@@ -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))
index 65b8d996840c286ab69ac2434f699c6eff015b2e..21e803a6a281690af1d6598ba73d800fbf70c5dc 100644 (file)
@@ -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))