Fix the coverity issues
[platform/core/connectivity/zigbee-manager.git] / zigbee-daemon / zigbee-interface / src / zigbee_service_dbus_interface_custom.c
index 19404db..69ee61c 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <zblib_driver_custom.h>
 
+/* LCOV_EXCL_START */
 static void *_service_interface_ref_zigbee_custom(
        ZigBeeServiceInterface *service_interface)
 {
@@ -36,7 +37,7 @@ static void *_service_interface_ref_zigbee_custom(
        /* Get zigbee object */
        zigbee_object = g_hash_table_lookup(custom_data->objects, ZIGBEE_SERVICE_PATH);
        if (NULL == zigbee_object) {
-               Z_LOGW("Cannot find ZigBee D-BUS interface object!", zigbee_object);
+               Z_LOGW("Cannot find ZigBee D-BUS interface object!");
                return NULL;
        }
 
@@ -364,7 +365,7 @@ void zigbee_service_dbus_interface_custom_notification(ZigBeeServiceInterface *s
 
        NOT_USED(noti_cb_data);
 
-       switch(noti_id) {
+       switch (noti_id) {
        case ZBLIB_CUSTOM_NOTI_APS_SEND: {
                int i;
                GVariant* payload = NULL;
@@ -451,6 +452,7 @@ void zigbee_service_dbus_interface_custom_notification(ZigBeeServiceInterface *s
        /* ZigbeeCustom should be dereferenced */
        g_object_unref(custom_object);
 }
+/* LCOV_EXCL_STOP */
 
 gboolean zigbee_service_dbus_interface_custom_init(ZigBeeServiceInterface *service_interface,
        ZigbeeObjectSkeleton *zigbee_object)
@@ -458,8 +460,10 @@ gboolean zigbee_service_dbus_interface_custom_init(ZigBeeServiceInterface *servi
        ZigbeeCustom *custom_object;
 
        if (NULL == service_interface) {
+               /* LCOV_EXCL_START */
                Z_LOGE("service_interface is NULL");
                return FALSE;
+               /* LCOV_EXCL_STOP */
        }
 
        custom_object = zigbee_custom_skeleton_new();