Drivers: Staging: CSR: fixed coding style errors in csr_wifi_router_free_upstream_contents.c
Originally there were a lot of coding style errors so, I cleaned up the coding style errors including braces and indentations. Signed-off-by: Sangho Yi <antiroot@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ae485c27c7
commit
936a8b4c29
1 changed files with 20 additions and 26 deletions
|
@ -1,10 +1,10 @@
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
|
||||||
(c) Cambridge Silicon Radio Limited 2011
|
(c) Cambridge Silicon Radio Limited 2011
|
||||||
All rights reserved and confidential information of CSR
|
All rights reserved and confidential information of CSR
|
||||||
|
|
||||||
Refer to LICENSE.txt included with this source for details
|
Refer to LICENSE.txt included with this source for details
|
||||||
on the license terms.
|
on the license terms.
|
||||||
|
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
@ -26,28 +26,22 @@
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
void CsrWifiRouterFreeUpstreamMessageContents(u16 eventClass, void *message)
|
void CsrWifiRouterFreeUpstreamMessageContents(u16 eventClass, void *message)
|
||||||
{
|
{
|
||||||
if (eventClass != CSR_WIFI_ROUTER_PRIM)
|
if (eventClass != CSR_WIFI_ROUTER_PRIM)
|
||||||
{
|
return;
|
||||||
return;
|
if (NULL == message)
|
||||||
}
|
return;
|
||||||
if (NULL == message)
|
switch (*((CsrWifiRouterPrim *) message)) {
|
||||||
{
|
case CSR_WIFI_ROUTER_MA_PACKET_IND:
|
||||||
return;
|
{
|
||||||
}
|
CsrWifiRouterMaPacketInd *p =
|
||||||
|
(CsrWifiRouterMaPacketInd *) message;
|
||||||
switch (*((CsrWifiRouterPrim *) message))
|
kfree(p->frame);
|
||||||
{
|
p->frame = NULL;
|
||||||
case CSR_WIFI_ROUTER_MA_PACKET_IND:
|
break;
|
||||||
{
|
}
|
||||||
CsrWifiRouterMaPacketInd *p = (CsrWifiRouterMaPacketInd *)message;
|
default:
|
||||||
kfree(p->frame);
|
break;
|
||||||
p->frame = NULL;
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue