diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-06-20 13:40:12 +0200 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-06-30 17:07:14 +0200 |
commit | 510df2515f6b0afdd7604aee21b02b8f339e9344 (patch) | |
tree | da0e7d87c4a9ff44da42735e63606b367585c481 /drivers/bluetooth/btuart_cs.c | |
parent | Bluetooth: cleanup dtl1_config (diff) | |
download | linux-510df2515f6b0afdd7604aee21b02b8f339e9344.tar.xz linux-510df2515f6b0afdd7604aee21b02b8f339e9344.zip |
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/btuart_cs.c')
-rw-r--r-- | drivers/bluetooth/btuart_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { 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)) |