diff options
| author | Aleksandar Rikalo <arikalo@gmail.com> | 2025-06-20 08:58:55 +0200 |
|---|---|---|
| committer | Pedro Alves <pedro@palves.net> | 2025-06-20 19:29:40 +0100 |
| commit | 404285eda06bef2532f2f219eed50ef03f5b608c (patch) | |
| tree | b197ae625b03f537f226f4015196ef081d079b0a | |
| parent | ed62a5351cfbe8468c265d4ff732ddf99acdbbbb (diff) | |
| download | binutils-404285eda06bef2532f2f219eed50ef03f5b608c.zip binutils-404285eda06bef2532f2f219eed50ef03f5b608c.tar.gz binutils-404285eda06bef2532f2f219eed50ef03f5b608c.tar.bz2 | |
gdb: Remove redundant null check
This patch simplifies the code at two points by removing redundant
null checks. There is no functional impact.
Reviewed-By: Keith Seitz <keiths@redhat.com>
Approved-By: Pedro Alves <pedro@palves.net>
Change-Id: I76e1c7fad00e8fcb24ced7bfd75d19cdd6266c32
| -rw-r--r-- | gdb/gnu-v2-abi.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c index ab9f53b..94efa70 100644 --- a/gdb/gnu-v2-abi.c +++ b/gdb/gnu-v2-abi.c @@ -265,15 +265,9 @@ gnuv2_value_rtti_type (struct value *v, int *full, LONGEST *top, int *using_enc) if (top && ((*top) >0)) { if (rtti_type->length () > known_type->length ()) - { - if (full) - *full=0; - } + *full = 0; else - { - if (full) - *full=1; - } + *full = 1; } } else |
