static void controller_init_thread_func(gpointer user_data)
{
- net_nfc_error_e result;
+ net_nfc_error_e result = NET_NFC_OK;
net_nfc_controller_is_ready(&result);
bool net_nfc_server_controller_init_sync(void)
{
- net_nfc_error_e result;
+ net_nfc_error_e result = NET_NFC_OK;
if (net_nfc_controller_init(&result) == false) {
DEBUG_ERR_MSG("net_nfc_controller_init failed, [%d]", result); //LCOV_EXCL_LINE
static void llcp_handle_close_thread_func(gpointer user_data)
{
LlcpCloseData *data = (LlcpCloseData *) user_data;
- net_nfc_error_e result;
+ net_nfc_error_e result = NET_NFC_OK;
g_assert(data != NULL);
g_assert(data->llcp != NULL);
net_nfc_error_e net_nfc_server_llcp_set_config(net_nfc_llcp_config_info_s * config)
{
- net_nfc_error_e result;
+ net_nfc_error_e result = NET_NFC_OK;
if (config == NULL) {
net_nfc_controller_llcp_config(&llcp_config, &result);
if (data->is_active == true) {
/* LCOV_EXCL_START */
- net_nfc_error_e check_result;
+ net_nfc_error_e check_result = NET_NFC_OK;
INFO_MSG("Daemon alive, But check the nfc device state.");
net_nfc_controller_is_ready(&check_result);
static void manager_handle_configure_discovery_thread_func(gpointer user_data)
{
ManagerConfigureDiscoveryData *data = (ManagerConfigureDiscoveryData *)user_data;
- net_nfc_error_e result;
+ net_nfc_error_e result = NET_NFC_OK;
g_assert(data != NULL);
g_assert(data->manager != NULL);
void net_nfc_server_manager_set_active(gboolean is_active)
{
ManagerActivationData *data;
- net_nfc_error_e result;
+ net_nfc_error_e result = NET_NFC_OK;
if (manager_skeleton == NULL) {
DEBUG_ERR_MSG("net_nfc_server_manager is not initialized"); // LCOV_EXCL_LINE
static net_nfc_error_e __do_routing_aid(aid_info_t * info, bool commit)
{
- net_nfc_error_e result;
+ net_nfc_error_e result = NET_NFC_OK;
if (info->is_routed == false) {
data_s temp = { 0, };
static net_nfc_error_e __do_unrouting_aid(aid_info_t * info, bool commit)
{
- net_nfc_error_e result;
+ net_nfc_error_e result = NET_NFC_OK;
if (info->is_routed == true) {
data_s temp = { 0, };