Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
csr_wifi_router_ctrl_free_upstream_contents.c
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  (c) Cambridge Silicon Radio Limited 2012
4  All rights reserved and confidential information of CSR
5 
6  Refer to LICENSE.txt included with this source for details
7  on the license terms.
8 
9 *****************************************************************************/
10 
11 /* Note: this is an auto-generated file. */
12 #include <linux/slab.h>
15 
16 /*----------------------------------------------------------------------------*
17  * NAME
18  * CsrWifiRouterCtrlFreeUpstreamMessageContents
19  *
20  * DESCRIPTION
21  *
22  *
23  * PARAMETERS
24  * eventClass: only the value CSR_WIFI_ROUTER_CTRL_PRIM will be handled
25  * message: the message to free
26  *----------------------------------------------------------------------------*/
28 {
29  if (eventClass != CSR_WIFI_ROUTER_CTRL_PRIM)
30  {
31  return;
32  }
33  if (NULL == message)
34  {
35  return;
36  }
37 
38  switch (*((CsrWifiRouterCtrlPrim *) message))
39  {
41  {
43  kfree(p->mlmeCommand);
44  p->mlmeCommand = NULL;
45  kfree(p->dataRef1);
46  p->dataRef1 = NULL;
47  kfree(p->dataRef2);
48  p->dataRef2 = NULL;
49  break;
50  }
52  {
54  kfree(p->setAddresses);
55  p->setAddresses = NULL;
56  break;
57  }
59  {
63  break;
64  }
66  {
68  kfree(p->signal);
69  p->signal = NULL;
70  kfree(p->data);
71  p->data = NULL;
72  break;
73  }
75  {
77  kfree(p->data);
78  p->data = NULL;
79  break;
80  }
81 
82  default:
83  break;
84  }
85 }
86 
87