aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-var.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mi/mi-cmd-var.c')
-rw-r--r--gdb/mi/mi-cmd-var.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c
index 4fc0c3f..38213e6 100644
--- a/gdb/mi/mi-cmd-var.c
+++ b/gdb/mi/mi-cmd-var.c
@@ -325,8 +325,7 @@ Must be: 0 or \"%s\", 1 or \"%s\", 2 or \"%s\""),
static int
mi_print_value_p (struct type *type, enum print_values print_values)
{
- if (type != NULL)
- type = check_typedef (type);
+ type = check_typedef (type);
if (print_values == PRINT_NO_VALUES)
return 0;