mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-01 13:26:47 +08:00
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.
This commit is contained in:
parent
e7e599a156
commit
a58577878b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user