mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
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
This commit is contained in:
committed by
Pedro Alves
parent
ed62a5351c
commit
404285eda0
@@ -265,15 +265,9 @@ gnuv2_value_rtti_type (struct value *v, int *full, LONGEST *top, int *using_enc)
|
|||||||
if (top && ((*top) >0))
|
if (top && ((*top) >0))
|
||||||
{
|
{
|
||||||
if (rtti_type->length () > known_type->length ())
|
if (rtti_type->length () > known_type->length ())
|
||||||
{
|
*full = 0;
|
||||||
if (full)
|
|
||||||
*full=0;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
*full = 1;
|
||||||
if (full)
|
|
||||||
*full=1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user