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
Unknown Object (File)
Mon, May 20, 10:06 AM
Unknown Object (File)
Fri, May 17, 9:24 AM
Unknown Object (File)
Tue, May 14, 12:27 PM
Unknown Object (File)
Tue, May 14, 3:01 AM
Unknown Object (File)
Wed, May 8, 3:01 PM
Unknown Object (File)
Thu, Apr 25, 4:57 AM
Unknown Object (File)
Apr 18 2024, 11:51 AM
Unknown Object (File)
Feb 11 2024, 2:22 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.