diff options
author | Atish Patra <atish.patra@wdc.com> | 2019-04-24 23:48:01 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-05-17 05:42:11 +0200 |
commit | f1f47c6ca34bb389f698cd80c77df4da0777e9c2 (patch) | |
tree | b2138d1de7b789920af8a20ccb358fd094127a75 /arch/riscv | |
parent | RISC-V: Support nr_cpus command line option. (diff) | |
download | linux-f1f47c6ca34bb389f698cd80c77df4da0777e9c2.tar.xz linux-f1f47c6ca34bb389f698cd80c77df4da0777e9c2.zip |
RISC-V: Fix minor checkpatch issues.
While working on the patches, I found some minor checkpatch issues.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/kernel/smp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c index 89251f8ab754..0115db1368a4 100644 --- a/arch/riscv/kernel/smp.c +++ b/arch/riscv/kernel/smp.c @@ -42,7 +42,7 @@ unsigned long __cpuid_to_hartid_map[NR_CPUS] = { void __init smp_setup_processor_id(void) { - cpuid_to_hartid_map(0) = boot_cpu_hartid; + cpuid_to_hartid_map(0) = boot_cpu_hartid; } /* A collection of single bit ipi messages. */ @@ -53,7 +53,7 @@ static struct { int riscv_hartid_to_cpuid(int hartid) { - int i = -1; + int i; for (i = 0; i < NR_CPUS; i++) if (cpuid_to_hartid_map(i) == hartid) |