Removed redundant NULL check for ad in _gl_pswd_check_box_sel()
[apps/native/ug-wifi-direct.git] / popup-wifidirect / src / wfd-app-popup-view.c
index c7e4b02..461c40e 100755 (executable)
@@ -938,8 +938,7 @@ static void _gl_pswd_check_box_sel(void *data, Evas_Object *obj, void *ei)
        elm_genlist_item_selected_set(item, EINA_FALSE);
        Eina_Bool state = elm_check_state_get(ck);
        elm_check_state_set(ck, !state);
-       if (ad)
-               _chk_changed_cb(ad->pin_entry, ck, NULL);
+       _chk_changed_cb(ad->pin_entry, ck, NULL);
 
        __WFD_APP_FUNC_EXIT__;
 }