Commit 936a8b4c authored by Sangho Yi's avatar Sangho Yi Committed by 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: default avatarSangho Yi <antiroot@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ae485c27
...@@ -27,24 +27,18 @@ ...@@ -27,24 +27,18 @@
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) if (NULL == message)
{
return; return;
} switch (*((CsrWifiRouterPrim *) message)) {
switch (*((CsrWifiRouterPrim *) message))
{
case CSR_WIFI_ROUTER_MA_PACKET_IND: case CSR_WIFI_ROUTER_MA_PACKET_IND:
{ {
CsrWifiRouterMaPacketInd *p = (CsrWifiRouterMaPacketInd *)message; CsrWifiRouterMaPacketInd *p =
(CsrWifiRouterMaPacketInd *) message;
kfree(p->frame); kfree(p->frame);
p->frame = NULL; p->frame = NULL;
break; break;
} }
default: default:
break; break;
} }
......
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