ASoC: wm2000: Correct register size
[linux-2.6/btrfs-unstable.git] / drivers / staging / csr / csr_wifi_router_free_upstream_contents.c
blobde1086d7158d765b9715d2793ac97c43c09a11e7
1 /*****************************************************************************
3 (c) Cambridge Silicon Radio Limited 2011
4 All rights reserved and confidential information of CSR
6 Refer to LICENSE.txt included with this source for details
7 on the license terms.
9 *****************************************************************************/
11 /* Note: this is an auto-generated file. */
12 #include <linux/slab.h>
13 #include "csr_wifi_router_prim.h"
14 #include "csr_wifi_router_lib.h"
16 /*----------------------------------------------------------------------------*
17 * NAME
18 * CsrWifiRouterFreeUpstreamMessageContents
20 * DESCRIPTION
23 * PARAMETERS
24 * eventClass: only the value CSR_WIFI_ROUTER_PRIM will be handled
25 * message: the message to free
26 *----------------------------------------------------------------------------*/
27 void CsrWifiRouterFreeUpstreamMessageContents(u16 eventClass, void *message)
29 if (eventClass != CSR_WIFI_ROUTER_PRIM)
31 return;
33 if (NULL == message)
35 return;
38 switch (*((CsrWifiRouterPrim *) message))
40 case CSR_WIFI_ROUTER_MA_PACKET_IND:
42 CsrWifiRouterMaPacketInd *p = (CsrWifiRouterMaPacketInd *)message;
43 kfree(p->frame);
44 p->frame = NULL;
45 break;
48 default:
49 break;