aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-riscv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elfxx-riscv.c')
-rw-r--r--bfd/elfxx-riscv.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index c3d019c..044cc63 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -1536,13 +1536,9 @@ riscv_parsing_subset_version (const char *p,
{
np = *(p + 1);
+ /* Might be beginning of `p` extension. */
if (!ISDIGIT (np))
- {
- /* Might be beginning of `p` extension. */
- *major_version = version;
- *minor_version = 0;
- return p;
- }
+ break;
*major_version = version;
major_p = false;