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:
parent
59da4d04cb
commit
ae6a105d22
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue