HomeFreeBSD

Fix error value returned by ofw_bus_gen_get_node().

Description

Fix error value returned by ofw_bus_gen_get_node().

By definition ofw_bus_get_node() should consistently return -1 when there
is no associated OF node.

MFC after: 4 weeks
Discussed with: nwhitehorn
Analyzed in: https://reviews.freebsd.org/D30761

(cherry picked from commit 3eae4e106ac7222364fc9dc8c3d35d4ad8c5293a)

Details

Provenance
mmelAuthored on Jun 24 2021, 9:56 AM
Parents
rGd25147c01a20: riscv: gdb(4) support
Branches
Unknown
Tags
Unknown