]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dev/mfi: Make a seemingly bogus conditional unconditional
authorjhibbits <jhibbits@FreeBSD.org>
Wed, 9 Dec 2020 02:07:01 +0000 (02:07 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Wed, 9 Dec 2020 02:07:01 +0000 (02:07 +0000)
commite2fd7dfd5b225374e9c889a16617a49f79a30816
treea94f8c0aa5bdea0ba2cbae5c541e4e08ba119431
parentdc9f2d22031ebef6956f9623254914db0194beb9
dev/mfi: Make a seemingly bogus conditional unconditional

Summary:
r358689 attempted to fix a clang warning/error by inferring the intent
of the condition "(cdb[0] != 0x28 || cdb[0] != 0x2A)".  Unfortunately, it looks
like this broke things.  Instead, fix this by making this path unconditional,
effectively reverting to the previous state.

PR: kern/251483
Reviewed By: ambrisko
MFC after: 2 days
Differential Revision: https://reviews.freebsd.org/D27515
sys/dev/mfi/mfi_tbolt.c