Project

General

Profile

Actions

Bug #2993

closed

sys/dev/raid/mfi/mfi_tbolt.c:1159: bad expression ?

Added by dcb over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/28/2017
Due date:
% Done:

0%

Estimated time:

Description

sys/dev/raid/mfi/mfi_tbolt.c:1159]: (warning) Logical disjunction always evaluates to true: EXPR != 40 || EXPR != 42.

Source code is

if (cdb[0] != 0x28 || cdb[0] != 0x2A) {

Maybe better code

if (cdb[0] != 0x28 && cdb[0] != 0x2A) {
Actions

Also available in: Atom PDF