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

staging: wilc1000: host_int_init: replace s32Error with result

This patch replaces s32Error with result in host_int_init function to
avoid camelcase.
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f4e0ce2
...@@ -6360,7 +6360,7 @@ static u32 clients_count; ...@@ -6360,7 +6360,7 @@ static u32 clients_count;
s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv) s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
{ {
s32 s32Error = 0; s32 result = 0;
tstrWILC_WFIDrv *pstrWFIDrv; tstrWILC_WFIDrv *pstrWFIDrv;
int err; int err;
...@@ -6373,13 +6373,13 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv) ...@@ -6373,13 +6373,13 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
/*Allocate host interface private structure*/ /*Allocate host interface private structure*/
pstrWFIDrv = kzalloc(sizeof(tstrWILC_WFIDrv), GFP_KERNEL); pstrWFIDrv = kzalloc(sizeof(tstrWILC_WFIDrv), GFP_KERNEL);
if (!pstrWFIDrv) { if (!pstrWFIDrv) {
s32Error = -ENOMEM; result = -ENOMEM;
goto _fail_timer_2; goto _fail_timer_2;
} }
*phWFIDrv = pstrWFIDrv; *phWFIDrv = pstrWFIDrv;
err = add_handler_in_list(pstrWFIDrv); err = add_handler_in_list(pstrWFIDrv);
if (err) { if (err) {
s32Error = -EFAULT; result = -EFAULT;
goto _fail_timer_2; goto _fail_timer_2;
} }
...@@ -6405,16 +6405,16 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv) ...@@ -6405,16 +6405,16 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
PRINT_D(HOSTINF_DBG, "INIT: CLIENT COUNT %d\n", clients_count); PRINT_D(HOSTINF_DBG, "INIT: CLIENT COUNT %d\n", clients_count);
if (clients_count == 0) { if (clients_count == 0) {
s32Error = wilc_mq_create(&gMsgQHostIF); result = wilc_mq_create(&gMsgQHostIF);
if (s32Error < 0) { if (result < 0) {
PRINT_ER("Failed to creat MQ\n"); PRINT_ER("Failed to creat MQ\n");
goto _fail_; goto _fail_;
} }
HostIFthreadHandler = kthread_run(hostIFthread, NULL, "WILC_kthread"); HostIFthreadHandler = kthread_run(hostIFthread, NULL, "WILC_kthread");
if (IS_ERR(HostIFthreadHandler)) { if (IS_ERR(HostIFthreadHandler)) {
PRINT_ER("Failed to creat Thread\n"); PRINT_ER("Failed to creat Thread\n");
s32Error = -EFAULT; result = -EFAULT;
goto _fail_mq_; goto _fail_mq_;
} }
setup_timer(&g_hPeriodicRSSI, GetPeriodicRSSI, setup_timer(&g_hPeriodicRSSI, GetPeriodicRSSI,
...@@ -6454,7 +6454,7 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv) ...@@ -6454,7 +6454,7 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
clients_count++; /* increase number of created entities */ clients_count++; /* increase number of created entities */
return s32Error; return result;
_fail_timer_2: _fail_timer_2:
up(&(pstrWFIDrv->gtOsCfgValuesSem)); up(&(pstrWFIDrv->gtOsCfgValuesSem));
...@@ -6464,7 +6464,7 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv) ...@@ -6464,7 +6464,7 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)
_fail_mq_: _fail_mq_:
wilc_mq_destroy(&gMsgQHostIF); wilc_mq_destroy(&gMsgQHostIF);
_fail_: _fail_:
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