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:
Nelson Chu 2021-11-22 19:34:45 +08:00
parent e7e599a156
commit a58577878b

View File

@ -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;