]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
riscv: fix riscv_of_processor_hartid() comment
authorJohan Hovold <johan@kernel.org>
Fri, 18 Jan 2019 14:03:06 +0000 (15:03 +0100)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 11 Feb 2019 23:35:21 +0000 (15:35 -0800)
commit149820c6cf3cf51cd9dc1cf50cbe59b5b61e3909
tree56bc070ccf3217d4558fd76c88304df99dda592e
parente1b1381b31793dde71eb87a78071c22c3f02f75c
riscv: fix riscv_of_processor_hartid() comment

The riscv_of_processor_hartid() helper returns -ENODEV when the
specified node isn't an enabled and valid RISC-V hart node.

Also drop the unnecessary parenthesis around errno defines.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/cpu.c