Remove redundant NULL check for ugd in __motion_shake_cb() 87/93987/1 accepted/tizen/common/20161102.121902 accepted/tizen/ivi/20161102.073212 accepted/tizen/mobile/20161102.073122 accepted/tizen/tv/20161102.073138 submit/tizen/20161102.022647
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 26 Oct 2016 11:52:58 +0000 (17:22 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Wed, 26 Oct 2016 11:52:58 +0000 (17:22 +0530)
Change-Id: Ida43e7edb82699785cbfd37762775e4091b0c440
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/ug-setting-wifidirect-efl.spec
ug-wifidirect/src/wfd_motion_control.c

index 3dc7971..1791d00 100644 (file)
@@ -1,6 +1,6 @@
 Name:       ug-setting-wifidirect-efl
 Summary:    Wi-Fi Direct setting UI gadget
-Version:    1.11.81
+Version:    1.11.82
 Release:    1
 Group:      Applications/Network
 License:    Flora-1.1
index f3ca73f..8eae098 100755 (executable)
@@ -91,11 +91,6 @@ static void __motion_shake_cb(unsigned int event_type, sensor_event_data_t *even
        int ret = -1;
        const char *btn_text = NULL;
 
-       if (NULL == ugd) {
-               DBG(LOG_ERROR, "Incorrect parameter(NULL)\n");
-               return;
-       }
-
        wfd_refresh_wifi_direct_state(ugd);
 
        if (NULL == ugd->scan_toolbar) {