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:
Doug Evans 2014-12-12 23:25:46 -08:00
parent 59da4d04cb
commit ae6a105d22
2 changed files with 6 additions and 1 deletions

View file

@ -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;