]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r358689 (by jhibbits):
authorDimitry Andric <dim@FreeBSD.org>
Sat, 9 May 2020 11:18:34 +0000 (11:18 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 9 May 2020 11:18:34 +0000 (11:18 +0000)
commitbc40630d0ccc5ff83156d25c49480a78fc9e83da
tree37585217c0ad0b187fe2a2d0e8a083e3ad599594
parentd22e12dc50f5b8e761436334bd9d2ac2527e25d3
MFC r358689 (by jhibbits):

Fix a mistaken conditional in mfi_tbolt_send_frame()

As written, the condition of (cdb[0] != 0x28 || cdb[0] != 0x2A) will always
be true, since if it's one, it's obviously not the other.  Reading the code,
the intent appears to be that it should only perform the operation if it's
neither, otherwise the conditional can be elided.

Found by clang 10.
sys/dev/mfi/mfi_tbolt.c