mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +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:
@ -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;
|
||||
|
Reference in New Issue
Block a user