staging: rtl8188eu: correct code alignment
authorTeodora Baluta <teobaluta@gmail.com>
Thu, 7 Nov 2013 22:13:46 +0000 (00:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2013 20:05:04 +0000 (12:05 -0800)
This patch fixes incorrect code alignment due to mixed indenting with
spaces and tabs. This patch was detected using coccinelle and
silences the following warnings:

drivers/staging/rtl8188eu/core/rtw_io.c:297:2-29: code aligned with following code on line 299
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:4420:2-29: code aligned with following code on line 4422
drivers/staging/rtl8188eu/os_dep/osdep_service.c:54:2-17: code aligned with following code on line 55
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:7229:2-17: code aligned with following code on line 7231

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
Reviewed-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_io.c
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
drivers/staging/rtl8188eu/os_dep/osdep_service.c

index 10c9c6560b20207226575a184c4ed04a5b555442..c47990a62b7ce1c38b20ddd40341533020372b90 100644 (file)
@@ -296,7 +296,7 @@ u32 _rtw_write_port_and_wait(struct adapter *adapter, u32 addr, u32 cnt, u8 *pme
        if (ret == _SUCCESS)
                ret = rtw_sctx_wait(&sctx);
 
-        return ret;
+       return ret;
 }
 
 void _rtw_write_port_cancel(struct adapter *adapter)
index 7ab5ff039c8807da5d5d9fbcdac16859a4fa4a3b..6519a7b3f833794f8218d6d1563f997ef74bef48 100644 (file)
@@ -4419,7 +4419,7 @@ s32 dump_mgntframe_and_wait(struct adapter *padapter, struct xmit_frame *pmgntfr
        if (ret == _SUCCESS)
                ret = rtw_sctx_wait(&sctx);
 
-        return ret;
+       return ret;
 }
 
 s32 dump_mgntframe_and_wait_ack(struct adapter *padapter, struct xmit_frame *pmgntframe)
index ae545877023428b103df7af913ca9e10753ed939..a002d2e75e9f6193339314017601c67e3e4d079e 100644 (file)
@@ -7228,25 +7228,25 @@ static int rtw_mp_thermal(struct net_device *dev,
        if (copy_from_user(extra, wrqu->pointer, wrqu->length))
                return -EFAULT;
 
-        bwrite = strncmp(extra, "write", 6); /*  strncmp true is 0 */
+       bwrite = strncmp(extra, "write", 6); /*  strncmp true is 0 */
 
-        Hal_GetThermalMeter(padapter, &val);
+       Hal_GetThermalMeter(padapter, &val);
 
-        if (bwrite == 0) {
-                       EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (void *)&max_available_size, false);
-                       if (2 > max_available_size) {
-                               DBG_88E("no available efuse!\n");
-                               return -EFAULT;
-                       }
-                       if (rtw_efuse_map_write(padapter, addr, cnt, &val) == _FAIL) {
-                               DBG_88E("rtw_efuse_map_write error\n");
-                               return -EFAULT;
-                       } else {
-                                sprintf(extra, " efuse write ok :%d", val);
-                       }
-        } else {
-                        sprintf(extra, "%d", val);
-        }
+       if (bwrite == 0) {
+               EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (void *)&max_available_size, false);
+               if (2 > max_available_size) {
+                       DBG_88E("no available efuse!\n");
+                       return -EFAULT;
+               }
+               if (rtw_efuse_map_write(padapter, addr, cnt, &val) == _FAIL) {
+                       DBG_88E("rtw_efuse_map_write error\n");
+                       return -EFAULT;
+               } else {
+                        sprintf(extra, " efuse write ok :%d", val);
+               }
+       } else {
+                sprintf(extra, "%d", val);
+       }
        wrqu->length = strlen(extra);
 
        return 0;
index 5a9e9e4558aa6b60398a00faeb787bafa225e670..7b3fb35dd5cee4bd3171ed55c3694bffa8923436 100644 (file)
@@ -52,7 +52,7 @@ u32 rtw_atoi(u8 *s)
        }
        if (flag == 1)
                num = num * -1;
-        return num;
+       return num;
 }
 
 inline u8 *_rtw_vmalloc(u32 sz)