]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/bluetooth/btuart_cs.c
Bluetooth: Use devm_kzalloc in bluecard_cs.c file
[mirror_ubuntu-zesty-kernel.git] / drivers / bluetooth / btuart_cs.c
index c4fc2f3fc32cad477afb98051100f4bc9d023b3f..21e803a6a281690af1d6598ba73d800fbf70c5dc 100644 (file)
@@ -140,9 +140,9 @@ static void btuart_write_wakeup(btuart_info_t *info)
        }
 
        do {
-               register unsigned int iobase = info->p_dev->resource[0]->start;
+               unsigned int iobase = info->p_dev->resource[0]->start;
                register struct sk_buff *skb;
-               register int len;
+               int len;
 
                clear_bit(XMIT_WAKEUP, &(info->tx_state));
 
@@ -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))