mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 09:12:39 -04:00
riscv: sbi: remove useless parenthesis
A few parenthesis in check for SBI version/extension were useless, remove them. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Link: https://lore.kernel.org/r/20250523101932.1594077-3-cleger@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
This commit is contained in:
committed by
Palmer Dabbelt
parent
cf8651f731
commit
a7cd450f0e
@@ -609,7 +609,7 @@ void __init sbi_init(void)
|
||||
} else {
|
||||
__sbi_rfence = __sbi_rfence_v01;
|
||||
}
|
||||
if ((sbi_spec_version >= sbi_mk_version(0, 3)) &&
|
||||
if (sbi_spec_version >= sbi_mk_version(0, 3) &&
|
||||
sbi_probe_extension(SBI_EXT_SRST)) {
|
||||
pr_info("SBI SRST extension detected\n");
|
||||
pm_power_off = sbi_srst_power_off;
|
||||
@@ -617,8 +617,8 @@ void __init sbi_init(void)
|
||||
sbi_srst_reboot_nb.priority = 192;
|
||||
register_restart_handler(&sbi_srst_reboot_nb);
|
||||
}
|
||||
if ((sbi_spec_version >= sbi_mk_version(2, 0)) &&
|
||||
(sbi_probe_extension(SBI_EXT_DBCN) > 0)) {
|
||||
if (sbi_spec_version >= sbi_mk_version(2, 0) &&
|
||||
sbi_probe_extension(SBI_EXT_DBCN) > 0) {
|
||||
pr_info("SBI DBCN extension detected\n");
|
||||
sbi_debug_console_available = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user