diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-06-20 07:40:12 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-06-30 11:07:14 -0400 |
commit | 510df2515f6b0afdd7604aee21b02b8f339e9344 (patch) | |
tree | da0e7d87c4a9ff44da42735e63606b367585c481 /drivers/bluetooth | |
parent | 46afededca7d8b0117e05b23e5cbcfa0e2bbbd92 (diff) |
Bluetooth: Fix warning: using int as NULL pointer
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>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/bt3c_cs.c | 2 | ||||
-rw-r--r-- | 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 b2b0fbbb43b5..8925b6d672a6 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) | |||
664 | { | 664 | { |
665 | int *try = priv_data; | 665 | int *try = priv_data; |
666 | 666 | ||
667 | if (try == 0) | 667 | if (!try) |
668 | p_dev->io_lines = 16; | 668 | p_dev->io_lines = 16; |
669 | 669 | ||
670 | if ((p_dev->resource[0]->end != 8) || (p_dev->resource[0]->start == 0)) | 670 | 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 65b8d996840c..21e803a6a281 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) | |||
593 | { | 593 | { |
594 | int *try = priv_data; | 594 | int *try = priv_data; |
595 | 595 | ||
596 | if (try == 0) | 596 | if (!try) |
597 | p_dev->io_lines = 16; | 597 | p_dev->io_lines = 16; |
598 | 598 | ||
599 | if ((p_dev->resource[0]->end != 8) || (p_dev->resource[0]->start == 0)) | 599 | if ((p_dev->resource[0]->end != 8) || (p_dev->resource[0]->start == 0)) |