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: 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>
This commit is contained in:
parent
466bc7f230
commit
1f9d82d293
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user