]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
Drivers: Staging: CSR: fixed coding style errors in csr_wifi_router_free_upstream_con...
authorSangho Yi <antiroot@gmail.com>
Sun, 14 Oct 2012 12:35:32 +0000 (21:35 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 21:01:42 +0000 (14:01 -0700)
Originally there were a lot of coding style errors so, I cleaned up the
coding style errors including braces and indentations.

Signed-off-by: Sangho Yi <antiroot@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/csr/csr_wifi_router_free_upstream_contents.c

index de1086d7158d765b9715d2793ac97c43c09a11e7..4cd126338e27910cba3fc0ab5939da29739b66f6 100644 (file)
@@ -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.
 
 *****************************************************************************/
 
  *----------------------------------------------------------------------------*/
 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;
+       }
 }