summaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm
diff options
context:
space:
mode:
authorJavier Martinez Canillas <martinez.javier@gmail.com>2011-02-12 04:38:22 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 13:21:55 -0800
commit1e1233234edeacabbcaab9d086474224ba5af015 (patch)
treeb7d9517b86a0eca45afa48846fe303df3df9dc00 /drivers/staging/bcm
parentebb61e5f9754e88843fc05ee2a6204ef3f6c2fc8 (diff)
downloadblackbird-obmc-linux-1e1233234edeacabbcaab9d086474224ba5af015.tar.gz
blackbird-obmc-linux-1e1233234edeacabbcaab9d086474224ba5af015.zip
Staging: bcm: Bcmchar: Fix style issues on bcm_char_open()
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/bcm')
-rw-r--r--drivers/staging/bcm/Bcmchar.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c
index 7dff283edb65..edcd0c02eb85 100644
--- a/drivers/staging/bcm/Bcmchar.c
+++ b/drivers/staging/bcm/Bcmchar.c
@@ -15,21 +15,22 @@
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;
OpenPOWER on IntegriCloud