lkml.org 
[lkml]   [2019]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 2/8] RISC-V: Move cpuid to hartid mapping to SMP.
> +	if (hartid == boot_cpu_hartid)
> + return 0;
> + else
> + return -1;

No need for an else after a return statement.

> +}
> +static inline unsigned long cpuid_to_hartid_map(int cpu)
> +{
> +
> + return boot_cpu_hartid;

spurious empty line above.

\
 
 \ /
  Last update: 2019-01-15 14:52    [W:0.168 / U:7.864 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site