Commit dddaba1a authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

staging: wilc1000: host_int_init: remove unnecessary parentheses

This patch removes unnecessary parentheses found by checkpatch.pl

Unnecessary parentheses around pstrWFIDrv->hSemTestKeyBlock
Unnecessary parentheses around pstrWFIDrv->hSemTestDisconnectBlock
Unnecessary parentheses around pstrWFIDrv->hSemGetRSSI
Unnecessary parentheses around pstrWFIDrv->hSemGetLINKSPEED
Unnecessary parentheses around pstrWFIDrv->hSemGetCHNL
Unnecessary parentheses around pstrWFIDrv->hSemInactiveTime
Unnecessary parentheses around pstrWFIDrv->gtOsCfgValuesSem
Unnecessary parentheses around pstrWFIDrv->gtOsCfgValuesSem
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d53eec3
...@@ -6395,12 +6395,12 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv) ...@@ -6395,12 +6395,12 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
sema_init(&hSemHostIntDeinit, 1); sema_init(&hSemHostIntDeinit, 1);
} }
sema_init(&(pstrWFIDrv->hSemTestKeyBlock), 0); sema_init(&pstrWFIDrv->hSemTestKeyBlock, 0);
sema_init(&(pstrWFIDrv->hSemTestDisconnectBlock), 0); sema_init(&pstrWFIDrv->hSemTestDisconnectBlock, 0);
sema_init(&(pstrWFIDrv->hSemGetRSSI), 0); sema_init(&pstrWFIDrv->hSemGetRSSI, 0);
sema_init(&(pstrWFIDrv->hSemGetLINKSPEED), 0); sema_init(&pstrWFIDrv->hSemGetLINKSPEED, 0);
sema_init(&(pstrWFIDrv->hSemGetCHNL), 0); sema_init(&pstrWFIDrv->hSemGetCHNL, 0);
sema_init(&(pstrWFIDrv->hSemInactiveTime), 0); sema_init(&pstrWFIDrv->hSemInactiveTime, 0);
PRINT_D(HOSTINF_DBG, "INIT: CLIENT COUNT %d\n", clients_count); PRINT_D(HOSTINF_DBG, "INIT: CLIENT COUNT %d\n", clients_count);
...@@ -6430,7 +6430,7 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv) ...@@ -6430,7 +6430,7 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
setup_timer(&pstrWFIDrv->hRemainOnChannel, ListenTimerCB, 0); setup_timer(&pstrWFIDrv->hRemainOnChannel, ListenTimerCB, 0);
sema_init(&(pstrWFIDrv->gtOsCfgValuesSem), 1); sema_init(&(pstrWFIDrv->gtOsCfgValuesSem), 1);
down(&(pstrWFIDrv->gtOsCfgValuesSem)); down(&pstrWFIDrv->gtOsCfgValuesSem);
pstrWFIDrv->enuHostIFstate = HOST_IF_IDLE; pstrWFIDrv->enuHostIFstate = HOST_IF_IDLE;
...@@ -6450,14 +6450,14 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv) ...@@ -6450,14 +6450,14 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
pstrWFIDrv->strCfgValues.active_scan_time, pstrWFIDrv->strCfgValues.passive_scan_time, pstrWFIDrv->strCfgValues.active_scan_time, pstrWFIDrv->strCfgValues.passive_scan_time,
pstrWFIDrv->strCfgValues.curr_tx_rate); pstrWFIDrv->strCfgValues.curr_tx_rate);
up(&(pstrWFIDrv->gtOsCfgValuesSem)); up(&pstrWFIDrv->gtOsCfgValuesSem);
clients_count++; /* increase number of created entities */ clients_count++; /* increase number of created entities */
return result; return result;
_fail_timer_2: _fail_timer_2:
up(&(pstrWFIDrv->gtOsCfgValuesSem)); up(&pstrWFIDrv->gtOsCfgValuesSem);
del_timer_sync(&pstrWFIDrv->hConnectTimer); del_timer_sync(&pstrWFIDrv->hConnectTimer);
del_timer_sync(&pstrWFIDrv->hScanTimer); del_timer_sync(&pstrWFIDrv->hScanTimer);
kthread_stop(HostIFthreadHandler); kthread_stop(HostIFthreadHandler);
......
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