forked from Imagelibrary/binutils-gdb
value_maybe_namespace_elt: Remove unnecessary test of result != NULL.
Both allocate_value and value_of_variable are guaranteed to return non-NULL. gdb/ChangeLog: * valops.c (value_maybe_namespace_elt): Remove unnecessary test of result != NULL.
This commit is contained in:
@@ -3586,7 +3586,7 @@ value_maybe_namespace_elt (const struct type *curtype,
|
||||
else
|
||||
result = value_of_variable (sym, get_selected_block (0));
|
||||
|
||||
if (result && want_address)
|
||||
if (want_address)
|
||||
result = value_addr (result);
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user