From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH] scsi: nsp32: fix logic bug in error handling Date: Mon, 16 Oct 2017 22:39:34 -0400 Message-ID: References: <20170905075139.518406-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: (Masanori Goto's message of "Mon, 16 Oct 2017 08:51:22 +0900") Sender: linux-kernel-owner@vger.kernel.org To: Masanori Goto Cc: Arnd Bergmann , YOKOTA Hiroshi , "James E.J. Bottomley" , "Martin K. Petersen" , Hannes Reinecke , Johannes Thumshirn , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-scsi@vger.kernel.org Masanori, >> gcc-8 points out a logic error that has existed since the start >> of the git history: >> >> drivers/scsi/nsp32.c: In function 'nsp32_selection_autoscsi': >> drivers/scsi/nsp32.c:607:27: error: bitwise comparison always evaluates to false [-Werror=tautological-compare] >> if(((phase & BUSMON_BSY) == 1) || (phase & BUSMON_SEL) == 1) { Applied to 4.15/scsi-queue. Thanks, Arnd! -- Martin K. Petersen Oracle Linux Engineering