提交 936a8b4c 编写于 作者: S Sangho Yi 提交者: Greg Kroah-Hartman

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: NSangho Yi <antiroot@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ae485c27
/*****************************************************************************
(c) Cambridge Silicon Radio Limited 2011
All rights reserved and confidential information of CSR
(c) Cambridge Silicon Radio Limited 2011
All rights reserved and confidential information of CSR
Refer to LICENSE.txt included with this source for details
on the license terms.
Refer to LICENSE.txt included with this source for details
on the license terms.
*****************************************************************************/
......@@ -26,28 +26,22 @@
*----------------------------------------------------------------------------*/
void CsrWifiRouterFreeUpstreamMessageContents(u16 eventClass, void *message)
{
if (eventClass != CSR_WIFI_ROUTER_PRIM)
{
return;
}
if (NULL == message)
{
return;
}
switch (*((CsrWifiRouterPrim *) message))
{
case CSR_WIFI_ROUTER_MA_PACKET_IND:
{
CsrWifiRouterMaPacketInd *p = (CsrWifiRouterMaPacketInd *)message;
kfree(p->frame);
p->frame = NULL;
break;
}
default:
break;
}
if (eventClass != CSR_WIFI_ROUTER_PRIM)
return;
if (NULL == message)
return;
switch (*((CsrWifiRouterPrim *) message)) {
case CSR_WIFI_ROUTER_MA_PACKET_IND:
{
CsrWifiRouterMaPacketInd *p =
(CsrWifiRouterMaPacketInd *) message;
kfree(p->frame);
p->frame = NULL;
break;
}
default:
break;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册