Commit 1e123323 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Greg Kroah-Hartman

Staging: bcm: Bcmchar: Fix style issues on bcm_char_open()

Signed-off-by: default avatarJavier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ebb61e5f
...@@ -19,13 +19,14 @@ static int bcm_char_open(struct inode *inode, struct file * filp) ...@@ -19,13 +19,14 @@ static int bcm_char_open(struct inode *inode, struct file * filp)
PPER_TARANG_DATA pTarang = NULL; PPER_TARANG_DATA pTarang = NULL;
Adapter = GET_BCM_ADAPTER(gblpnetdev); Adapter = GET_BCM_ADAPTER(gblpnetdev);
pTarang = (PPER_TARANG_DATA)kmalloc(sizeof(PER_TARANG_DATA), GFP_KERNEL); pTarang = (PPER_TARANG_DATA)kmalloc(sizeof(PER_TARANG_DATA),
GFP_KERNEL);
if (!pTarang) if (!pTarang)
return -ENOMEM; return -ENOMEM;
memset (pTarang, 0, sizeof(PER_TARANG_DATA)); memset(pTarang, 0, sizeof(PER_TARANG_DATA));
pTarang->Adapter = Adapter; pTarang->Adapter = Adapter;
pTarang->RxCntrlMsgBitMask = 0xFFFFFFFF & ~(1 << 0xB) ; pTarang->RxCntrlMsgBitMask = 0xFFFFFFFF & ~(1 << 0xB);
down(&Adapter->RxAppControlQueuelock); down(&Adapter->RxAppControlQueuelock);
pTarang->next = Adapter->pTarangs; pTarang->next = Adapter->pTarangs;
...@@ -41,6 +42,7 @@ static int bcm_char_open(struct inode *inode, struct file * filp) ...@@ -41,6 +42,7 @@ static int bcm_char_open(struct inode *inode, struct file * filp)
nonseekable_open(inode, filp); nonseekable_open(inode, filp);
return 0; return 0;
} }
static int bcm_char_release(struct inode *inode, struct file *filp) static int bcm_char_release(struct inode *inode, struct file *filp)
{ {
PPER_TARANG_DATA pTarang, tmp, ptmp; PPER_TARANG_DATA pTarang, tmp, ptmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment