diff options
| author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2012-03-15 22:53:39 +0000 |
|---|---|---|
| committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2012-03-15 22:53:39 +0000 |
| commit | 0d8d9edaaaca133545e9c50bbc51a19ea2bd6006 (patch) | |
| tree | 766b9307623f628b6d7593bdc335d1907b8da19e /sys/dev/ofw/ofw_bus_if.m | |
| parent | cd907a68aa6402276f2bfdbdcf2f907e6ab089c3 (diff) | |
Make ofw_bus_get_node() consistently return -1 when there is no associated
OF node, instead of a random mixture of 0 and -1. Update all checks for 0
to check for -1 instead.
MFC after: 4 weeks
Notes
Notes:
svn path=/head/; revision=233018
Diffstat (limited to 'sys/dev/ofw/ofw_bus_if.m')
| -rw-r--r-- | sys/dev/ofw/ofw_bus_if.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofw_bus_if.m b/sys/dev/ofw/ofw_bus_if.m index 446338c4551d..46fa281118d7 100644 --- a/sys/dev/ofw/ofw_bus_if.m +++ b/sys/dev/ofw/ofw_bus_if.m @@ -89,7 +89,7 @@ CODE { ofw_bus_default_get_node(device_t bus, device_t dev) { - return (0); + return (-1); } static const char * |
