Page MenuHomeFreeBSD

The condition can never be true
ClosedPublic

Authored by bret_ketchum_dell.com on Aug 21 2020, 3:09 PM.
Tags
None
Referenced Files
F115822512: D26144.diff
Tue, Apr 29, 4:03 AM
Unknown Object (File)
Wed, Apr 2, 8:14 AM
Unknown Object (File)
Feb 25 2025, 2:25 AM
Unknown Object (File)
Feb 24 2025, 7:02 PM
Unknown Object (File)
Feb 23 2025, 9:05 PM
Unknown Object (File)
Feb 22 2025, 4:21 AM
Unknown Object (File)
Feb 14 2025, 2:08 AM
Unknown Object (File)
Feb 10 2025, 9:21 PM
Subscribers

Details

Summary

Coverity flagged this condition: The and condition offset == 0 && offset == 65535 can never be true because offset cannot be equal to two different values at the same time

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

The same fix is applied in illumos (detected by smatch).

This revision is now accepted and ready to land.Aug 21 2020, 4:55 PM
This revision was automatically updated to reflect the committed changes.