Fix coding rule issues. 94/83994/1
authorNishant Chaprana <n.chaprana@samsung.com>
Tue, 16 Aug 2016 07:11:42 +0000 (12:41 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 16 Aug 2016 07:11:42 +0000 (12:41 +0530)
This patch fixes coding rule issues generated by checkpatchinit_tizen.sh.
./plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c:161: ERROR: [SPC_M_KWD] space required before the open parenthesis '('
./plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c:1644: ERROR: [SPC_M_OPR] space required after that ',' (ctx:VxV)

Change-Id: Id88f1edd29bca4256d858d4ea7e7b8db04e90eb1
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c

index cc9fdaf..2508f6e 100644 (file)
@@ -158,7 +158,7 @@ static ws_dbus_plugin_data_s *g_pd;
        do {\
                if (g_pd->callback)\
                        g_pd->callback(user_data, event);\
-       } while(0)
+       } while (0)
 
 static int is_peer_joined_notified = 0;
 static int is_peer_disconnected_notified = 0;
@@ -1641,7 +1641,7 @@ static void _ws_process_device_found_properties(GDBusConnection *connection,
        g_strlcpy(peer_path, path, DBUS_OBJECT_PATH_MAX);
        WDP_LOGD("Retrive Added path [%s]", peer_path);
 
-       loc = strrchr(peer_path,'/');
+       loc = strrchr(peer_path, '/');
        if (loc != NULL)
                __ws_mac_compact_to_normal(loc + 1, peer_dev);
        __ws_txt_to_mac(peer_dev, event.dev_addr);