Date: Thu, 05 Jul 2018 20:28:18 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 229551] src/sys/dev/trm/trm.c:2484: bad if logic Message-ID: <bug-229551-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229551 Bug ID: 229551 Summary: src/sys/dev/trm/trm.c:2484: bad if logic Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dcb314@hotmail.com src/sys/dev/trm/trm.c:2484] -> [src/sys/dev/trm/trm.c:2486]: (warning) Identical inner 'if' condition is always true. Source code is if ((((ptr->Vers & 0x07) >=3D 2) || ((ptr->RDF & 0x0F) =3D=3D 2))= && (ptr->Flags & SCSI_INQ_CMDQUEUE= ) && (pDCB->DevMode & TAG_QUEUING_) = && (pDCB->DevMode & EN_DISCONNECT_= )) { if (pDCB->DevMode & TAG_QUEUING_) { pDCB-> MaxActiveComman= dCnt =3D pACB->TagMaxNum; pDCB->SyncMode |=3D EN_TAG_QUEUING; pDCB->tinfo.disc_ta= g |=3D TRM_CUR_TAGENB; } else { Duplicate in the TAG_QUEUING. Else clause can never run. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229551-227>
