[PATCH 2/4] staging: csr: fix coding style problems in unifi_coredump_free

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



1. replace spaces with tabs
2. single statement if do not need braces

Signed-off-by: Devendra Naga <develkernel412222@xxxxxxxxx>
---
 drivers/staging/csr/csr_wifi_hip_dump.c |   58 ++++++++++++++----------------
 1 files changed, 27 insertions(+), 31 deletions(-)

diff --git a/drivers/staging/csr/csr_wifi_hip_dump.c b/drivers/staging/csr/csr_wifi_hip_dump.c
index d67b460..b5b8f0b 100644
--- a/drivers/staging/csr/csr_wifi_hip_dump.c
+++ b/drivers/staging/csr/csr_wifi_hip_dump.c
@@ -821,45 +821,41 @@ fail:
  */
 void unifi_coredump_free(card_t *card)
 {
-    void *ospriv = card->ospriv;
-    coredump_buffer *node, *del_node;
-    s16 i = 0;
-    s16 j;
+	void *ospriv = card->ospriv;
+	coredump_buffer *node, *del_node;
+	s16 i = 0;
+	s16 j;
 
-    func_enter();
-    unifi_trace(ospriv, UDBG2, "Core dump de-configured\n");
+	func_enter();
+	unifi_trace(ospriv, UDBG2, "Core dump de-configured\n");
 
-    if (card->dump_buf == NULL)
-    {
-        return;
-    }
+	if (card->dump_buf == NULL)
+		return;
 
-    node = card->dump_buf;
-    do
-    {
-        /* Free payload zones */
-        for (j = 0; j < HIP_CDUMP_NUM_ZONES; j++)
-        {
-            kfree(node->zone[j]);
-            node->zone[j] = NULL;
-        }
+	node = card->dump_buf;
+	do {
+		/* Free payload zones */
+		for (j = 0; j < HIP_CDUMP_NUM_ZONES; j++) {
+			kfree(node->zone[j]);
+			node->zone[j] = NULL;
+		}
 
-        /* Detach */
-        del_node = node;
-        node = node->next;
+		/* Detach */
+		del_node = node;
+		node = node->next;
 
-        /* Free header */
-        kfree(del_node);
-        i++;
-    } while ((node != NULL) && (node != card->dump_buf));
+		/* Free header */
+		kfree(del_node);
+		i++;
+	} while ((node != NULL) && (node != card->dump_buf));
 
-    unifi_trace(ospriv, UDBG3, "Freed %d coredump buffers\n", i);
+	unifi_trace(ospriv, UDBG3, "Freed %d coredump buffers\n", i);
 
-    card->dump_buf = NULL;
-    card->dump_next_write = NULL;
-    card->dump_cur_read = NULL;
+	card->dump_buf = NULL;
+	card->dump_next_write = NULL;
+	card->dump_cur_read = NULL;
 
-    func_exit();
+	func_exit();
 } /* unifi_coredump_free() */
 
 
-- 
1.7.4.1

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux