staging: rtl8192u: fixed coding style issues in r8192U_core.c
authorPatrik Karlin <patrik.karlin@gmail.com>
Wed, 9 Jan 2013 08:40:56 +0000 (09:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jan 2013 00:37:11 +0000 (16:37 -0800)
This patch fixes some coding style issuses in r8192U_core.c
No logic is changed

Signed-off-by: Patrik Kårlin <patrik.karlin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c

index beafab186fb509a19f32432ee9116ff8c16bc558..f7de2f6d49a5e7c86ac98bbdfc1961fd8d467164 100644 (file)
@@ -509,55 +509,50 @@ static int proc_get_registers(char *page, char **start,
        int max=0xff;
 
        /* This dump the current register page */
-len += snprintf(page + len, count - len,
+       len += snprintf(page + len, count - len,
                        "\n####################page 0##################\n ");
 
-       for(n=0;n<=max;)
-       {
+       for (n=0;n<=max;) {
                //printk( "\nD: %2x> ", n);
                len += snprintf(page + len, count - len,
                        "\nD:  %2x > ",n);
 
-               for(i=0;i<16 && n<=max;i++,n++)
-               len += snprintf(page + len, count - len,
-                       "%2x ",read_nic_byte(dev,0x000|n));
+               for (i=0;i<16 && n<=max;i++,n++)
+                       len += snprintf(page + len, count - len,
+                                       "%2x ",read_nic_byte(dev,0x000|n));
 
                //      printk("%2x ",read_nic_byte(dev,n));
        }
-len += snprintf(page + len, count - len,
+       len += snprintf(page + len, count - len,
                        "\n####################page 1##################\n ");
-       for(n=0;n<=max;)
-       {
+       for (n=0;n<=max;) {
                //printk( "\nD: %2x> ", n);
                len += snprintf(page + len, count - len,
-                       "\nD:  %2x > ",n);
+                               "\nD:  %2x > ",n);
 
-               for(i=0;i<16 && n<=max;i++,n++)
-               len += snprintf(page + len, count - len,
-                       "%2x ",read_nic_byte(dev,0x100|n));
+               for (i=0;i<16 && n<=max;i++,n++)
+                       len += snprintf(page + len, count - len,
+                                       "%2x ",read_nic_byte(dev,0x100|n));
 
                //      printk("%2x ",read_nic_byte(dev,n));
        }
-len += snprintf(page + len, count - len,
+       len += snprintf(page + len, count - len,
                        "\n####################page 3##################\n ");
-       for(n=0;n<=max;)
-       {
+       for (n=0;n<=max;) {
                //printk( "\nD: %2x> ", n);
                len += snprintf(page + len, count - len,
                        "\nD:  %2x > ",n);
 
                for(i=0;i<16 && n<=max;i++,n++)
-               len += snprintf(page + len, count - len,
-                       "%2x ",read_nic_byte(dev,0x300|n));
+                       len += snprintf(page + len, count - len,
+                                       "%2x ",read_nic_byte(dev,0x300|n));
 
                //      printk("%2x ",read_nic_byte(dev,n));
        }
 
-
        len += snprintf(page + len, count - len,"\n");
        *eof = 1;
        return len;
-
 }