]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ixgbe: fix impossible condition
authorEric van Gyzen <vangyzen@FreeBSD.org>
Fri, 21 Aug 2020 19:34:41 +0000 (19:34 +0000)
committerKevin Bowling <kbowling@FreeBSD.org>
Sun, 3 Oct 2021 01:59:48 +0000 (18:59 -0700)
commit660b6999cc95aa56f5981c538234bd3475b3abc5
tree3862413081bb0de126a8bf2cc7673e6650a8cbc7
parent2b81559f4fd6bb2c6664df8ae8745f85523dfe41
ixgbe: fix impossible condition

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

Submitted by: bret_ketchum@dell.com
Reported by: Coverity
Reviewed by: tsoome, cem
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D26144

(cherry picked from commit ab1c54fec66803235a8923333fa79f2cbfa33354)
sys/dev/ixgbe/ixgbe_common.c