This patch remove pstrWFIDrv in host_int_remove_key. There is no need to
make another variable to check if first argument is NULL or not.
It is able to use wfi_drv directly that is first argument of this
function.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
int host_int_remove_wep_key(tstrWILC_WFIDrv *wfi_drv, u8 index)
{
int result = 0;
- tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)wfi_drv;
struct host_if_msg msg;
- if (pstrWFIDrv == NULL) {
+ if (wfi_drv == NULL) {
result = -EFAULT;
PRINT_ER("Failed to send setup multicast config packet\n");
return result;
result = wilc_mq_send(&gMsgQHostIF, &msg, sizeof(struct host_if_msg));
if (result)
PRINT_ER("Error in sending message queue : Request to remove WEP key\n");
- down(&(pstrWFIDrv->hSemTestKeyBlock));
+ down(&(wfi_drv->hSemTestKeyBlock));
return result;
}