cfdisk: make code more readable for analyzers [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2014-07-17 13:59:01 +02:00
parent a9408274b7
commit d02c203512
1 changed files with 2 additions and 0 deletions

View File

@ -1090,6 +1090,7 @@ static int ui_menu_move(struct cfdisk *cf, int key)
ui_menu_goto(cf, (int) m->idx - m->page_sz);
return 0;
}
/* fallthrough */
case KEY_HOME:
ui_menu_goto(cf, 0);
return 0;
@ -1098,6 +1099,7 @@ static int ui_menu_move(struct cfdisk *cf, int key)
ui_menu_goto(cf, m->idx + m->page_sz);
return 0;
}
/* fallthrough */
case KEY_END:
ui_menu_goto(cf, m->nitems);
return 0;