mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
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>
This commit is contained in:
parent
8b4302a442
commit
f1f47c6ca3
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue