Page MenuHomeFreeBSD

Fix errneous checks for OF_finddevice(9) return value
ClosedPublic

Authored by gonzo on Mar 10 2018, 11:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 11:22 AM
Unknown Object (File)
Tue, Nov 5, 1:40 PM
Unknown Object (File)
Sun, Oct 27, 12:30 AM
Unknown Object (File)
Oct 13 2024, 10:00 AM
Unknown Object (File)
Oct 10 2024, 1:55 PM
Unknown Object (File)
Oct 3 2024, 1:57 PM
Unknown Object (File)
Oct 1 2024, 4:58 PM
Unknown Object (File)
Oct 1 2024, 4:08 PM
Subscribers

Details

Summary

OF_finddevices returns -1 in case of failure. Some code in
existing drivers checked return value to be equal to 0 or
less/equal to 0. Most of these checks were for negative
cases that were never triggered so trhere was no negative
impact on functionality.

This patch fixes all instances of such erroneous checks.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable