mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 10:19:47 +00:00
![Greg Kroah-Hartman](/assets/img/avatar_default.png)
It's no longer needed. Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com> Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com> Cc: Riku Mettälä <riku.mettala@bluegiga.com> Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
53 lines
1.4 KiB
C
53 lines
1.4 KiB
C
/*****************************************************************************
|
|
|
|
(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.
|
|
|
|
*****************************************************************************/
|
|
|
|
/* Note: this is an auto-generated file. */
|
|
#include <linux/slab.h>
|
|
#include "csr_wifi_router_prim.h"
|
|
#include "csr_wifi_router_lib.h"
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* NAME
|
|
* CsrWifiRouterFreeUpstreamMessageContents
|
|
*
|
|
* DESCRIPTION
|
|
*
|
|
*
|
|
* PARAMETERS
|
|
* eventClass: only the value CSR_WIFI_ROUTER_PRIM will be handled
|
|
* message: the message to free
|
|
*----------------------------------------------------------------------------*/
|
|
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;
|
|
}
|
|
}
|
|
|
|
|