Commit 8583fd8b authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: rename pstrRcvdGnrlAsyncInfo to avoid camelCase

Fix "Avoid camelCase" issue found by checkpatch.pl script.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 37ac5106
...@@ -1319,7 +1319,7 @@ static s32 host_int_get_assoc_res_info(struct wilc_vif *vif, ...@@ -1319,7 +1319,7 @@ static s32 host_int_get_assoc_res_info(struct wilc_vif *vif,
u32 *rcvd_assoc_resp_info_len); u32 *rcvd_assoc_resp_info_len);
static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
struct rcvd_async_info *pstrRcvdGnrlAsyncInfo) struct rcvd_async_info *rcvd_info)
{ {
s32 result = 0; s32 result = 0;
u8 u8MsgType = 0; u8 u8MsgType = 0;
...@@ -1343,26 +1343,26 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, ...@@ -1343,26 +1343,26 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP || if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP ||
hif_drv->hif_state == HOST_IF_CONNECTED || hif_drv->hif_state == HOST_IF_CONNECTED ||
hif_drv->usr_scan_req.scan_result) { hif_drv->usr_scan_req.scan_result) {
if (!pstrRcvdGnrlAsyncInfo->buffer || if (!rcvd_info->buffer ||
!hif_drv->usr_conn_req.conn_result) { !hif_drv->usr_conn_req.conn_result) {
netdev_err(vif->ndev, "driver is null\n"); netdev_err(vif->ndev, "driver is null\n");
return -EINVAL; return -EINVAL;
} }
u8MsgType = pstrRcvdGnrlAsyncInfo->buffer[0]; u8MsgType = rcvd_info->buffer[0];
if ('I' != u8MsgType) { if ('I' != u8MsgType) {
netdev_err(vif->ndev, "Received Message incorrect.\n"); netdev_err(vif->ndev, "Received Message incorrect.\n");
return -EFAULT; return -EFAULT;
} }
u8MsgID = pstrRcvdGnrlAsyncInfo->buffer[1]; u8MsgID = rcvd_info->buffer[1];
u16MsgLen = MAKE_WORD16(pstrRcvdGnrlAsyncInfo->buffer[2], pstrRcvdGnrlAsyncInfo->buffer[3]); u16MsgLen = MAKE_WORD16(rcvd_info->buffer[2], rcvd_info->buffer[3]);
u16WidID = MAKE_WORD16(pstrRcvdGnrlAsyncInfo->buffer[4], pstrRcvdGnrlAsyncInfo->buffer[5]); u16WidID = MAKE_WORD16(rcvd_info->buffer[4], rcvd_info->buffer[5]);
u8WidLen = pstrRcvdGnrlAsyncInfo->buffer[6]; u8WidLen = rcvd_info->buffer[6];
u8MacStatus = pstrRcvdGnrlAsyncInfo->buffer[7]; u8MacStatus = rcvd_info->buffer[7];
u8MacStatusReasonCode = pstrRcvdGnrlAsyncInfo->buffer[8]; u8MacStatusReasonCode = rcvd_info->buffer[8];
u8MacStatusAdditionalInfo = pstrRcvdGnrlAsyncInfo->buffer[9]; u8MacStatusAdditionalInfo = rcvd_info->buffer[9];
if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP) { if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP) {
u32 u32RcvdAssocRespInfoLen = 0; u32 u32RcvdAssocRespInfoLen = 0;
struct connect_resp_info *pstrConnectRespInfo = NULL; struct connect_resp_info *pstrConnectRespInfo = NULL;
...@@ -1519,8 +1519,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, ...@@ -1519,8 +1519,8 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
} }
} }
kfree(pstrRcvdGnrlAsyncInfo->buffer); kfree(rcvd_info->buffer);
pstrRcvdGnrlAsyncInfo->buffer = NULL; rcvd_info->buffer = NULL;
return result; 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