diff options
author | Nelson Chu <nelson.chu@sifive.com> | 2021-11-22 19:34:45 +0800 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2021-11-22 19:40:42 +0800 |
commit | a58577878b19cb2e6ebbfdbff557203c344955b1 (patch) | |
tree | 2c4ac80988970e3d2a85aff3b0cbafb7727bc934 /bfd | |
parent | e7e599a156fe24631f313e95818dfc79fb3112d7 (diff) | |
download | gdb-a58577878b19cb2e6ebbfdbff557203c344955b1.zip gdb-a58577878b19cb2e6ebbfdbff557203c344955b1.tar.gz gdb-a58577878b19cb2e6ebbfdbff557203c344955b1.tar.bz2 |
RISC-V: Removed the redundant NULL pointer check in the riscv_update_subset.
If we always use the .option arch to call the riscv_update_subset, then
it is almost impossible that the input string will be NULL. Therefore,
just remove the redundant NULL pointer check in the riscv_update_subset.
bfd/
* elfxx-riscv.c (riscv_update_subset): Removed the redundant NULL
pointer check.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/elfxx-riscv.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index 73a99b5..3bd41ff 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -2211,9 +2211,6 @@ riscv_update_subset (riscv_parse_subset_t *rps, { const char *p = str; - if (p == NULL) - return false; - do { int major_version = RISCV_UNKNOWN_VERSION; |