irqtop: small cleanup in main()

This commit is contained in:
Karel Zak 2020-03-06 14:55:19 +01:00
parent 77f57b90f7
commit e925cf378f
1 changed files with 1 additions and 3 deletions

View File

@ -309,10 +309,8 @@ static void parse_args( struct irqtop_ctl *ctl,
int main(int argc, char **argv)
{
int is_tty = 0;
int retval = EXIT_SUCCESS;
struct termios saved_tty;
struct irq_output out = {
.ncolumns = 0,
.sort_func = DEF_SORT_FUNC
};
struct irqtop_ctl ctl = {
@ -344,5 +342,5 @@ int main(int argc, char **argv)
delwin(ctl.win);
endwin();
return retval;
return EXIT_SUCCESS;
}