From 6423d049e6820759fcdabd48395d35147815199b Mon Sep 17 00:00:00 2001 From: Sangho Yi Date: Sun, 14 Oct 2012 21:35:32 +0900 Subject: [PATCH] --- yaml --- r: 337137 b: refs/heads/master c: 936a8b4c29e2db3db7cb6109d5be15b71a05acb5 h: refs/heads/master i: 337135: 81ab8d82a2b1fabb81edfe0878489b483017821f v: v3 --- [refs] | 2 +- .../csr_wifi_router_free_upstream_contents.c | 46 ++++++++----------- 2 files changed, 21 insertions(+), 27 deletions(-) diff --git a/[refs] b/[refs] index 4dea6dea1a4f..e19ce1426717 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ae485c27c71fea5a90503676c7d491f46db48f33 +refs/heads/master: 936a8b4c29e2db3db7cb6109d5be15b71a05acb5 diff --git a/trunk/drivers/staging/csr/csr_wifi_router_free_upstream_contents.c b/trunk/drivers/staging/csr/csr_wifi_router_free_upstream_contents.c index de1086d7158d..4cd126338e27 100644 --- a/trunk/drivers/staging/csr/csr_wifi_router_free_upstream_contents.c +++ b/trunk/drivers/staging/csr/csr_wifi_router_free_upstream_contents.c @@ -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. *****************************************************************************/ @@ -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; + } }