1. Change tag style for error log
[platform/core/location/lbs-location.git] / location / module / module-internal.c
index ad5a0c5..5e70447 100755 (executable)
@@ -173,9 +173,9 @@ static void mod_free(gpointer mod, const char *module_name)
 
        if (0 == g_strcmp0(module_name, "gps")) {
                LocationGpsMod *_mod = (LocationGpsMod *) mod;
-               if (_mod->shutdown && _mod->handler) {
+               if (_mod->shutdown && _mod->handler)
                        _mod->shutdown(_mod->handler);
-               }
+
                _mod->handler = NULL;
                _mod->init = NULL;
                _mod->shutdown = NULL;
@@ -183,9 +183,9 @@ static void mod_free(gpointer mod, const char *module_name)
                _mod->gmod = NULL;
        } else if (0 == g_strcmp0(module_name, "wps")) {
                LocationWpsMod *_mod = (LocationWpsMod *) mod;
-               if (_mod->shutdown && _mod->handler) {
+               if (_mod->shutdown && _mod->handler)
                        _mod->shutdown(_mod->handler);
-               }
+
                _mod->handler = NULL;
                _mod->init = NULL;
                _mod->shutdown = NULL;
@@ -193,9 +193,9 @@ static void mod_free(gpointer mod, const char *module_name)
                _mod->gmod = NULL;
        } else if (0 == g_strcmp0(module_name, "mock")) {
                LocationMockMod *_mod = (LocationMockMod *) mod;
-               if (_mod->shutdown && _mod->handler) {
+               if (_mod->shutdown && _mod->handler)
                        _mod->shutdown(_mod->handler);
-               }
+
                _mod->handler = NULL;
                _mod->init = NULL;
                _mod->shutdown = NULL;
@@ -212,9 +212,9 @@ static gboolean mod_is_supported(const char *module_name)
 {
        GMod *gmod = NULL;
        gmod = gmod_new(module_name, FALSE);
-       if (!gmod) {
+       if (!gmod)
                return FALSE;
-       }
+
        gmod_free(gmod);
 
        return TRUE;
@@ -290,11 +290,10 @@ gboolean module_is_supported(const char *module_name)
        char name[256] = { 0, };
 
        for (index = -1; index < MAX_MODULE_INDEX; index++) {
-               if (index >= 0) {
+               if (index >= 0)
                        g_snprintf(name, 256, "%s%d", module_name, index);
-               } else {
+               else
                        g_snprintf(name, 256, "%s", module_name);
-               }
 
                ret = mod_is_supported(name);
                if (ret == TRUE) {