ui/ncurses: Remove redundant assignment
[petitboot] / ui / ncurses / nc-widgets.c
index 7e03e573d943a81d84ce45c3ba56a2729c8029ed..98d30cc8686cf76e67694de24e83ebf889fd4267 100644 (file)
@@ -1224,10 +1224,8 @@ void widgetset_post(struct nc_widgetset *set)
        post_form(set->form);
        form_driver(set->form, REQ_END_FIELD);
 
-       if (set->cur_field) {
+       if (set->cur_field)
                set_current_field(set->form, set->cur_field);
-               field = set->cur_field;
-       }
 
        field = current_field(set->form);
        widget = field_userptr(field);