Remove redundant NULL check for ugd in __motion_shake_cb()
[apps/native/ug-wifi-direct.git] / ug-wifidirect / src / wfd_motion_control.c
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) {