[PATCH 11/11] ui/ncurses: Remove redundant assignment

Samuel Mendoza-Jonas sam.mj at au1.ibm.com
Thu Nov 12 15:34:41 AEDT 2015


Fixes Coverity defect #30484

Signed-off-by: Samuel Mendoza-Jonas <sam.mj at au1.ibm.com>
---
 ui/ncurses/nc-widgets.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ui/ncurses/nc-widgets.c b/ui/ncurses/nc-widgets.c
index 7e03e57..98d30cc 100644
--- a/ui/ncurses/nc-widgets.c
+++ b/ui/ncurses/nc-widgets.c
@@ -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);
-- 
2.6.2



More information about the Petitboot mailing list