Page MenuHomeFreeBSD

onyx: Remove unreachable if condition
ClosedPublic

Authored by christos on Oct 17 2024, 2:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 28, 10:41 AM
Unknown Object (File)
Fri, Dec 27, 8:05 AM
Unknown Object (File)
Mon, Dec 23, 10:46 AM
Unknown Object (File)
Sun, Dec 15, 4:46 PM
Unknown Object (File)
Dec 13 2024, 12:33 PM
Unknown Object (File)
Dec 8 2024, 11:46 AM
Unknown Object (File)
Nov 28 2024, 5:10 PM
Unknown Object (File)
Nov 22 2024, 10:11 PM
Subscribers

Details

Summary

Both conditions are the same, so the second one is unreachable.

PR: 229550
Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I think this was probably the intent, yes.

This revision is now accepted and ready to land.Oct 17 2024, 3:11 PM

Seems like a strange error to make and this is a functional change because the code in the else if block is dead today. I added @andreast as the committer of 9c3fbfbd6a739b053611d35ead0a67a5ecba8825 but I wouldn't be surprised if this hardware is not functional any longer.

I don't object to landing this though - if someone reports that the driver no longer probes we can get them to investigate.

Fine with me. I'm pretty sure, no machine with this chip will run an actual FreeBSD. Speaking for me, I have given up Mac PowerPC and FreeBSD a long time ago.

This revision was automatically updated to reflect the committed changes.