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)
Wed, Oct 15, 3:29 AM
Unknown Object (File)
Sun, Oct 5, 4:50 AM
Unknown Object (File)
Wed, Oct 1, 6:09 PM
Unknown Object (File)
Tue, Sep 30, 5:14 AM
Unknown Object (File)
Fri, Sep 26, 6:46 AM
Unknown Object (File)
Tue, Sep 23, 11:49 PM
Unknown Object (File)
Tue, Sep 23, 4:27 AM
Unknown Object (File)
Sep 17 2025, 3:26 AM
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

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

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.