Removed redundant NULL check 66/185766/1
authorNishant Chaprana <n.chaprana@samsung.com>
Thu, 2 Aug 2018 07:20:29 +0000 (12:50 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Thu, 2 Aug 2018 07:20:29 +0000 (12:50 +0530)
Change-Id: I014223000cf92801856d46a00c15f2b8d306bd9f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/stc-iptables.spec
src/stc-iptables-gdbus.c

index 16c1f2e57e404b71d6e825ea91b9edbb27089d0e..e6ae09234a8b9b90160947b76bbaf1095c3f5dd5 100644 (file)
@@ -1,6 +1,6 @@
 Name:       stc-iptables
 Summary:    STC(Smart Traffic Control) iptables
-Version:    0.0.18
+Version:    0.0.19
 Release:    0
 Group:      Network & Connectivity/Other
 License:    GPL-2.0 and Apache-2.0
index 4770e1d787c78545a66b6c2b8d8db480314bd287..b29cdf177553898afb1f6676d42900594328ec57 100755 (executable)
@@ -230,7 +230,7 @@ void stc_iptables_gdbus_deinit(gpointer stc_data)
 }
 
 void stc_iptables_gdbus_dict_foreach(GVariantIter *iter,
-                                               dbus_dict_cb cb, void *user_data)
+                                    dbus_dict_cb cb, void *user_data)
 {
        __STC_LOG_FUNC_ENTER__;
 
@@ -244,7 +244,7 @@ void stc_iptables_gdbus_dict_foreach(GVariantIter *iter,
 
        while (g_variant_iter_loop(iter, "{sv}", &key, &value)) {
                /* STC_DEBUG_GDBUS_KEY_VALUE(key, value); */
-               if (key && cb)
+               if (key)
                        cb(key, value, user_data);
        }