freebsd-skq/sys/dev/ofw
Oleksandr Tymoshenko 108117cc22 [ofw] fix errneous checks for OF_finddevice(9) return value
OF_finddevices returns ((phandle_t)-1) in case of failure. Some code
in existing drivers checked return value to be equal to 0 or
less/equal to 0 which is also wrong because phandle_t is unsigned
type. Most of these checks were for negative cases that were never
triggered so trhere was no impact on functionality.

Reviewed by:	nwhitehorn
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D14645
2018-03-20 00:03:49 +00:00
..
ofw_bus_if.m
ofw_bus_subr.c Out of an abundance of caution, NUL out the first byte in the PNP 2018-01-28 23:58:22 +00:00
ofw_bus_subr.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_bus.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_console.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_cpu.c Do not bind to CPUs with SMT, which use a different CPU numbering convention 2017-11-25 21:46:51 +00:00
ofw_cpu.h
ofw_disk.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_fdt.c ofw_fdt: Simplify parts with new libfdt methods 2018-02-26 14:00:23 +00:00
ofw_if.m
ofw_pci.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_standard.c Set internal error returns for OF_peer(), OF_child(), and OF_parent() to 2018-02-19 15:49:14 +00:00
ofw_subr.c [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
ofw_subr.h Add a ofw_parse_bootargs function, and use it for powerpc 2016-09-21 02:28:39 +00:00
ofwbus.c INTRNG: Rework handling with resources. Partially revert r301453. 2016-08-19 10:52:39 +00:00
ofwpci.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
ofwpci.h OFWPCI: Add support for NEW_PCIB. 2016-07-17 13:43:46 +00:00
ofwvar.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
openfirm.c Back out OF module installation in the event of failure. PS3 firmware gives 2017-11-28 06:31:39 +00:00
openfirm.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
openfirmio.c [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
openfirmio.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
openpromio.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
openpromio.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00