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.
This commit is contained in:
parent
1a09271c7d
commit
ce610b77ee
@ -1109,7 +1109,7 @@ mfi_tbolt_send_frame(struct mfi_softc *sc, struct mfi_command *cm)
|
||||
|
||||
if (hdr->cmd == MFI_CMD_PD_SCSI_IO) {
|
||||
/* check for inquiry commands coming from CLI */
|
||||
if (cdb[0] != 0x28 || cdb[0] != 0x2A) {
|
||||
if (cdb[0] != 0x28 && cdb[0] != 0x2A) {
|
||||
if ((req_desc = mfi_tbolt_build_mpt_cmd(sc, cm)) ==
|
||||
NULL) {
|
||||
device_printf(sc->mfi_dev, "Mapping from MFI "
|
||||
|
Loading…
x
Reference in New Issue
Block a user