Removed redundant NULL check for service in ws_start_service_discovery() 82/93982/1 accepted/tizen/common/20161102.121906 accepted/tizen/ivi/20161102.073213 accepted/tizen/mobile/20161102.073124 accepted/tizen/tv/20161102.073139 accepted/tizen/wearable/20161102.073153 submit/tizen/20161102.022647
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 26 Oct 2016 11:39:18 +0000 (17:09 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Wed, 26 Oct 2016 11:39:18 +0000 (17:09 +0530)
Change-Id: I346f0f79e06130eec25723cf9b415cde784cce8e
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/wifi-direct-manager.spec
plugin/wpasupplicant/ctrl_iface_sock/wfd-plugin-wpasupplicant.c

index c7c502b..a0dadf8 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:          wifi-direct-manager
 Summary:       Wi-Fi Direct manger
-Version:       1.2.211
+Version:       1.2.212
 Release:       1
 Group:      Network & Connectivity/Wireless
 License:    Apache-2.0
index 0d6f46e..15abde4 100644 (file)
@@ -4323,10 +4323,6 @@ int ws_start_service_discovery(unsigned char *mac_addr, int service_type)
                WDP_LOGE("Failed to allocate memory for service");
                return -1;
        }
-       if (!service) {
-               WDP_LOGE("Failed to allocate memory for service");
-               return -1;
-       }
 
        if (mac_addr[0] == 0 && mac_addr[1] == 0 && mac_addr[2] == 0 &&
                mac_addr[3] == 0 && mac_addr[4] == 0 && mac_addr[5] == 0) {