Staging: bcm: Bcmchar: Fix style issues on bcm_char_open()
authorJavier Martinez Canillas <martinez.javier@gmail.com>
Sat, 12 Feb 2011 03:38:22 +0000 (04:38 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 21:21:55 +0000 (13:21 -0800)
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/bcm/Bcmchar.c

index 7dff283edb655a9c1286ca6095d8f687272c0a66..edcd0c02eb85a3677f247c98a92fb22dd51e28c3 100644 (file)
 
 static int bcm_char_open(struct inode *inode, struct file * filp)
 {
-       PMINI_ADAPTER           Adapter = NULL;
-    PPER_TARANG_DATA   pTarang = NULL;
+       PMINI_ADAPTER       Adapter = NULL;
+       PPER_TARANG_DATA    pTarang = NULL;
 
        Adapter = GET_BCM_ADAPTER(gblpnetdev);
-    pTarang = (PPER_TARANG_DATA)kmalloc(sizeof(PER_TARANG_DATA), GFP_KERNEL);
-    if (!pTarang)
-        return -ENOMEM;
+       pTarang = (PPER_TARANG_DATA)kmalloc(sizeof(PER_TARANG_DATA),
+                                           GFP_KERNEL);
+       if (!pTarang)
+               return -ENOMEM;
 
-       memset (pTarang, 0, sizeof(PER_TARANG_DATA));
-    pTarang->Adapter = Adapter;
-       pTarang->RxCntrlMsgBitMask = 0xFFFFFFFF & ~(1 << 0xB) ;
+       memset(pTarang, 0, sizeof(PER_TARANG_DATA));
+       pTarang->Adapter = Adapter;
+       pTarang->RxCntrlMsgBitMask = 0xFFFFFFFF & ~(1 << 0xB);
 
        down(&Adapter->RxAppControlQueuelock);
-    pTarang->next = Adapter->pTarangs;
-    Adapter->pTarangs = pTarang;
+       pTarang->next = Adapter->pTarangs;
+       Adapter->pTarangs = pTarang;
        up(&Adapter->RxAppControlQueuelock);
 
        /* Store the Adapter structure */
@@ -41,6 +42,7 @@ static int bcm_char_open(struct inode *inode, struct file * filp)
        nonseekable_open(inode, filp);
        return 0;
 }
+
 static int bcm_char_release(struct inode *inode, struct file *filp)
 {
     PPER_TARANG_DATA pTarang, tmp, ptmp;