Remove some null checks
authorTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:27:57 +0000 (07:27 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:28:44 +0000 (07:28 -0700)
commit3dd93bf837b10e01864d7d223ae9d3f9b92df74e
tree6f48c2db566069ae33c55e883994927dcc1b570c
parent9c79936b3df018166d53869f7f2bb2909f129e51
Remove some null checks

When not parsing for completion, parse_expression ensures that the
resulting expression has operations.  This patch removes a couple of
unnecessary checks for this situation.

gdb/ChangeLog
2021-03-08  Tom Tromey  <tom@tromey.com>

* printcmd.c (set_command): Remove null check.
* value.c (init_if_undefined_command): Remove null check.
gdb/ChangeLog
gdb/printcmd.c
gdb/value.c