diff options
author | Joe Perches <joe@perches.com> | 2013-03-18 20:55:37 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-25 11:16:16 -0700 |
commit | 5e0cc8a231be82b0ec44cdf2a406b1a97dd3c971 (patch) | |
tree | 9225bb9e3cd826e70d282cb05e6d7d174a864726 /drivers/staging/vt6655/device.h | |
parent | f2046f93db0918f99875853772142143590ba0c6 (diff) |
staging: vt6655: Convert to kernel brace style
Move braces around to be more kernel like.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/device.h')
-rw-r--r-- | drivers/staging/vt6655/device.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index 23e5f1365ae6..07f5af9740a7 100644 --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h @@ -815,12 +815,9 @@ typedef struct __device_info { inline static void EnQueue(PSDevice pDevice, PSRxMgmtPacket pRxMgmtPacket) { - if ((pDevice->rxManeQueue.tail+1) % NUM == pDevice->rxManeQueue.head) - { + if ((pDevice->rxManeQueue.tail+1) % NUM == pDevice->rxManeQueue.head) { return; - } - else - { + } else { pDevice->rxManeQueue.tail = (pDevice->rxManeQueue.tail + 1) % NUM; pDevice->rxManeQueue.Q[pDevice->rxManeQueue.tail] = pRxMgmtPacket; pDevice->rxManeQueue.packet_num++; @@ -833,13 +830,10 @@ inline static void EnQueue(PSDevice pDevice, PSRxMgmtPacket pRxMgmtPacket) inline static PSRxMgmtPacket DeQueue(PSDevice pDevice) { PSRxMgmtPacket pRxMgmtPacket; - if (pDevice->rxManeQueue.tail == pDevice->rxManeQueue.head) - { + if (pDevice->rxManeQueue.tail == pDevice->rxManeQueue.head) { printk("Queue is Empty\n"); return NULL; - } - else - { + } else { int x; //x=pDevice->rxManeQueue.head = (pDevice->rxManeQueue.head+1)%NUM; pDevice->rxManeQueue.head = (pDevice->rxManeQueue.head+1)%NUM; |