Commit 1f9d82d2 authored by Teodora Baluta's avatar Teodora Baluta Committed by Greg Kroah-Hartman

staging: rtl8188eu: correct code alignment

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: default avatarTeodora Baluta <teobaluta@gmail.com>
Reviewed-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 466bc7f2
...@@ -296,7 +296,7 @@ u32 _rtw_write_port_and_wait(struct adapter *adapter, u32 addr, u32 cnt, u8 *pme ...@@ -296,7 +296,7 @@ u32 _rtw_write_port_and_wait(struct adapter *adapter, u32 addr, u32 cnt, u8 *pme
if (ret == _SUCCESS) if (ret == _SUCCESS)
ret = rtw_sctx_wait(&sctx); ret = rtw_sctx_wait(&sctx);
return ret; return ret;
} }
void _rtw_write_port_cancel(struct adapter *adapter) void _rtw_write_port_cancel(struct adapter *adapter)
......
...@@ -4419,7 +4419,7 @@ s32 dump_mgntframe_and_wait(struct adapter *padapter, struct xmit_frame *pmgntfr ...@@ -4419,7 +4419,7 @@ s32 dump_mgntframe_and_wait(struct adapter *padapter, struct xmit_frame *pmgntfr
if (ret == _SUCCESS) if (ret == _SUCCESS)
ret = rtw_sctx_wait(&sctx); ret = rtw_sctx_wait(&sctx);
return ret; return ret;
} }
s32 dump_mgntframe_and_wait_ack(struct adapter *padapter, struct xmit_frame *pmgntframe) s32 dump_mgntframe_and_wait_ack(struct adapter *padapter, struct xmit_frame *pmgntframe)
......
...@@ -7228,25 +7228,25 @@ static int rtw_mp_thermal(struct net_device *dev, ...@@ -7228,25 +7228,25 @@ static int rtw_mp_thermal(struct net_device *dev,
if (copy_from_user(extra, wrqu->pointer, wrqu->length)) if (copy_from_user(extra, wrqu->pointer, wrqu->length))
return -EFAULT; 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) { if (bwrite == 0) {
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (void *)&max_available_size, false); EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (void *)&max_available_size, false);
if (2 > max_available_size) { if (2 > max_available_size) {
DBG_88E("no available efuse!\n"); DBG_88E("no available efuse!\n");
return -EFAULT; return -EFAULT;
} }
if (rtw_efuse_map_write(padapter, addr, cnt, &val) == _FAIL) { if (rtw_efuse_map_write(padapter, addr, cnt, &val) == _FAIL) {
DBG_88E("rtw_efuse_map_write error\n"); DBG_88E("rtw_efuse_map_write error\n");
return -EFAULT; return -EFAULT;
} else { } else {
sprintf(extra, " efuse write ok :%d", val); sprintf(extra, " efuse write ok :%d", val);
} }
} else { } else {
sprintf(extra, "%d", val); sprintf(extra, "%d", val);
} }
wrqu->length = strlen(extra); wrqu->length = strlen(extra);
return 0; return 0;
......
...@@ -52,7 +52,7 @@ u32 rtw_atoi(u8 *s) ...@@ -52,7 +52,7 @@ u32 rtw_atoi(u8 *s)
} }
if (flag == 1) if (flag == 1)
num = num * -1; num = num * -1;
return num; return num;
} }
inline u8 *_rtw_vmalloc(u32 sz) inline u8 *_rtw_vmalloc(u32 sz)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment