Commit 66d77cb5 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: rename variable s32Error

This patch renames variable s32Error to result
to avoid CamelCase naming convention.
Also, remove the unused variable s32Error and replace with direct return.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e509681d
...@@ -356,30 +356,29 @@ s32 wilc_parse_network_info(u8 *msg_buffer, tstrNetworkInfo **ret_network_info) ...@@ -356,30 +356,29 @@ s32 wilc_parse_network_info(u8 *msg_buffer, tstrNetworkInfo **ret_network_info)
s32 wilc_dealloc_network_info(tstrNetworkInfo *pstrNetworkInfo) s32 wilc_dealloc_network_info(tstrNetworkInfo *pstrNetworkInfo)
{ {
s32 s32Error = 0; s32 result = 0;
if (pstrNetworkInfo) { if (pstrNetworkInfo) {
if (pstrNetworkInfo->pu8IEs) { if (pstrNetworkInfo->pu8IEs) {
kfree(pstrNetworkInfo->pu8IEs); kfree(pstrNetworkInfo->pu8IEs);
pstrNetworkInfo->pu8IEs = NULL; pstrNetworkInfo->pu8IEs = NULL;
} else { } else {
s32Error = -EFAULT; result = -EFAULT;
} }
kfree(pstrNetworkInfo); kfree(pstrNetworkInfo);
pstrNetworkInfo = NULL; pstrNetworkInfo = NULL;
} else { } else {
s32Error = -EFAULT; result = -EFAULT;
} }
return s32Error; return result;
} }
s32 wilc_parse_assoc_resp_info(u8 *pu8Buffer, u32 u32BufferLen, s32 wilc_parse_assoc_resp_info(u8 *pu8Buffer, u32 u32BufferLen,
tstrConnectRespInfo **ppstrConnectRespInfo) tstrConnectRespInfo **ppstrConnectRespInfo)
{ {
s32 s32Error = 0;
tstrConnectRespInfo *pstrConnectRespInfo = NULL; tstrConnectRespInfo *pstrConnectRespInfo = NULL;
u16 u16AssocRespLen = 0; u16 u16AssocRespLen = 0;
u8 *pu8IEs = NULL; u8 *pu8IEs = NULL;
...@@ -408,27 +407,27 @@ s32 wilc_parse_assoc_resp_info(u8 *pu8Buffer, u32 u32BufferLen, ...@@ -408,27 +407,27 @@ s32 wilc_parse_assoc_resp_info(u8 *pu8Buffer, u32 u32BufferLen,
*ppstrConnectRespInfo = pstrConnectRespInfo; *ppstrConnectRespInfo = pstrConnectRespInfo;
return s32Error; return 0;
} }
s32 wilc_dealloc_assoc_resp_info(tstrConnectRespInfo *pstrConnectRespInfo) s32 wilc_dealloc_assoc_resp_info(tstrConnectRespInfo *pstrConnectRespInfo)
{ {
s32 s32Error = 0; s32 result = 0;
if (pstrConnectRespInfo) { if (pstrConnectRespInfo) {
if (pstrConnectRespInfo->pu8RespIEs) { if (pstrConnectRespInfo->pu8RespIEs) {
kfree(pstrConnectRespInfo->pu8RespIEs); kfree(pstrConnectRespInfo->pu8RespIEs);
pstrConnectRespInfo->pu8RespIEs = NULL; pstrConnectRespInfo->pu8RespIEs = NULL;
} else { } else {
s32Error = -EFAULT; result = -EFAULT;
} }
kfree(pstrConnectRespInfo); kfree(pstrConnectRespInfo);
pstrConnectRespInfo = NULL; pstrConnectRespInfo = NULL;
} else { } else {
s32Error = -EFAULT; result = -EFAULT;
} }
return s32Error; return result;
} }
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