Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337137
b: refs/heads/master
c: 936a8b4
h: refs/heads/master
i:
  337135: 81ab8d8
v: v3
  • Loading branch information
Sangho Yi authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 07f57e6 commit 6423d04
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 27 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae485c27c71fea5a90503676c7d491f46db48f33
refs/heads/master: 936a8b4c29e2db3db7cb6109d5be15b71a05acb5
46 changes: 20 additions & 26 deletions trunk/drivers/staging/csr/csr_wifi_router_free_upstream_contents.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*****************************************************************************
(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.
*****************************************************************************/

Expand All @@ -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;
}
}


0 comments on commit 6423d04

Please sign in to comment.