gdb/python: remove unneeded nullptr check in frapy_block
authorAndrew Burgess <aburgess@redhat.com>
Thu, 9 Mar 2023 09:11:35 +0000 (09:11 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 30 Mar 2023 09:25:46 +0000 (10:25 +0100)
commit3194ca90fefda8e3e43cb11cb149a1e5c074d45c
treee08bdabefd5f389d73d427568644e760eac93e2a
parent6bf5f25bb150c0fbcb125e3ee466ba8f9680310b
gdb/python: remove unneeded nullptr check in frapy_block

Spotted a redundant nullptr check in python/py-frame.c in the function
frapy_block.  This was introduced in commit 57126e4a45e3000e when we
expanded an earlier check in return early if the pointer in question
is nullptr.

There should be no user visible changes after this commit.

Reviewed-By: Tom Tromey <tom@tromey.com>
gdb/python/py-frame.c