Received: from eggs.gnu.org ([2001:4830:134:3::10]:47117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDpBK-0004aE-R7 for qemu-devel@nongnu.org; Fri, 17 Jun 2016 04:31:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDpBG-000174-L6 for qemu-devel@nongnu.org; Fri, 17 Jun 2016 04:31:13 -0400 Received: from indium.canonical.com ([91.189.90.7]:58919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDpBG-00016z-Fo for qemu-devel@nongnu.org; Fri, 17 Jun 2016 04:31:10 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bDpBD-0000zt-UK for ; Fri, 17 Jun 2016 08:31:08 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id D1A232E8011 for ; Fri, 17 Jun 2016 08:31:07 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 17 Jun 2016 08:23:41 -0000 From: "T. Huth" <1279257@bugs.launchpad.net> Reply-To: Bug 1279257 <1279257@bugs.launchpad.net> Sender: bounces@canonical.com References: <20140212091307.1972.7704.malonedeb@soybean.canonical.com> Message-Id: <20160617082341.31715.3665.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1279257] Re: [hw/scsi/scsi-bus.c:910]: (style) Expression '(X & 0x4) == 0x1' is always false. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Looks like this has been fixed here already: http://git.qemu.org/?p=3Dqemu.git;a=3Dcommitdiff;h=3D7ef8cf9a0861b6f67f5e ** Changed in: qemu Status: New =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1279257 Title: [hw/scsi/scsi-bus.c:910]: (style) Expression '(X & 0x4) =3D=3D 0x1' is always false. Status in QEMU: Fix Released Bug description: Source code is } else if ((buf[1] & 4) =3D=3D 1) { Suggest code rework. I found this bug by running static analyser cppcheck over the source code. I also checked the latest code on the web and the bug exists there also. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1279257/+subscriptions