Remove two unnecessary variables from evaluate_subexp_standard
authorTom Tromey <tom@tromey.com>
Wed, 25 Nov 2020 17:19:40 +0000 (10:19 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 25 Nov 2020 17:19:40 +0000 (10:19 -0700)
commitcbfa382abb360307c0c6b750e4c550a0d2b702d6
tree86e4abe21ae6b7aa3a7916d9f96714bc68e1e5a1
parentaf30c400ea2ae16742ce194f0490fec4170320d5
Remove two unnecessary variables from evaluate_subexp_standard

I noticed a couple of spots in evaluate_subexp_standard that looked
like:

    value *result;
    result = something;
    return result;

This patch simplifies these spots to a simple "return".

gdb/ChangeLog
2020-11-25  Tom Tromey  <tom@tromey.com>

* eval.c (evaluate_subexp_standard): Remove unnecessary
variables.
gdb/ChangeLog
gdb/eval.c