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)
Thu, Jan 23, 1:25 AM
Unknown Object (File)
Sat, Jan 18, 7:05 AM
Unknown Object (File)
Dec 28 2024, 10:41 AM
Unknown Object (File)
Dec 27 2024, 8:05 AM
Unknown Object (File)
Dec 23 2024, 10:46 AM
Unknown Object (File)
Dec 15 2024, 4:46 PM
Unknown Object (File)
Dec 13 2024, 12:33 PM
Unknown Object (File)
Dec 8 2024, 11:46 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60059
Build 56943: arc lint + arc unit

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.