mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 08:24:05 +08:00
Remove an unneeded NULL check
show_source_or_disasm_and_command will either create or reset the source window, so the final NULL check is not necessary. This patch removes it. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui-layout.c (show_source_or_disasm_and_command): Remove NULL check.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2019-06-25 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* tui/tui-layout.c (show_source_or_disasm_and_command): Remove
|
||||
NULL check.
|
||||
|
||||
2019-06-25 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
|
||||
|
@ -945,8 +945,7 @@ show_source_or_disasm_and_command (enum tui_layout_type layout_type)
|
||||
tui_make_visible (&(*win_info_ptr)->generic);
|
||||
tui_make_visible (base->execution_info);
|
||||
}
|
||||
if ((*win_info_ptr) != NULL)
|
||||
{
|
||||
|
||||
base->m_has_locator = true;
|
||||
tui_make_visible (locator);
|
||||
tui_show_locator_content ();
|
||||
@ -969,7 +968,6 @@ show_source_or_disasm_and_command (enum tui_layout_type layout_type)
|
||||
TUI_CMD_WIN->can_highlight = FALSE;
|
||||
tui_make_visible (&TUI_CMD_WIN->generic);
|
||||
}
|
||||
}
|
||||
tui_set_current_layout_to (layout_type);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user