Message ID | 20230710-map-unlocking-9f674ee171bb@wendy |
---|---|
State | Accepted |
Commit | 131033689da2ce17fb1407f0d3e608a203be5e09 |
Headers | show |
Series | [v4,01/11] RISC-V: Provide a more helpful error message on invalid ISA strings | expand |
diff --git a/arch/riscv/kernel/cpu.c b/arch/riscv/kernel/cpu.c index f808b67f5a27..e721f15fdf17 100644 --- a/arch/riscv/kernel/cpu.c +++ b/arch/riscv/kernel/cpu.c @@ -237,10 +237,6 @@ static void print_isa_ext(struct seq_file *f) arr_sz = ARRAY_SIZE(isa_ext_arr) - 1; - /* No extension support available */ - if (arr_sz <= 0) - return; - for (i = 0; i <= arr_sz; i++) { edata = &isa_ext_arr[i]; if (!__riscv_isa_extension_available(NULL, edata->isa_ext_id))