Merge "Return the correct value from loc_eng_init"
This commit is contained in:
commit
197c2755f1
1 changed files with 4 additions and 2 deletions
|
@ -290,11 +290,12 @@ int loc_eng_init(loc_eng_data_s_type &loc_eng_data, LocCallbacks* callbacks,
|
||||||
void (*loc_external_msg_sender) (void*, void*))
|
void (*loc_external_msg_sender) (void*, void*))
|
||||||
|
|
||||||
{
|
{
|
||||||
int ret_val =-1;
|
int ret_val = 0;
|
||||||
|
|
||||||
ENTRY_LOG_CALLFLOW();
|
ENTRY_LOG_CALLFLOW();
|
||||||
if (NULL == callbacks || 0 == event) {
|
if (NULL == callbacks || 0 == event) {
|
||||||
LOC_LOGE("loc_eng_init: bad parameters cb %p eMask %d", callbacks, event);
|
LOC_LOGE("loc_eng_init: bad parameters cb %p eMask %d", callbacks, event);
|
||||||
|
ret_val = -1;
|
||||||
EXIT_LOG(%d, ret_val);
|
EXIT_LOG(%d, ret_val);
|
||||||
return ret_val;
|
return ret_val;
|
||||||
}
|
}
|
||||||
|
@ -1868,6 +1869,7 @@ static void loc_eng_deferred_action_thread(void* arg)
|
||||||
{
|
{
|
||||||
loc_eng_reinit(*loc_eng_data_p);
|
loc_eng_reinit(*loc_eng_data_p);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOC_LOGE("unsupported msgid = %d\n", msg->msgid);
|
LOC_LOGE("unsupported msgid = %d\n", msg->msgid);
|
||||||
|
|
Loading…
Reference in a new issue