From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [patch] [SCSI] mvsas: fix a && vs & bug Date: Thu, 16 Aug 2012 11:23:44 -0400 Message-ID: <502D1080.6070307@pobox.com> References: <20120816110401.GA12318@elgon.mountain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120816110401.GA12318@elgon.mountain> Sender: linux-kernel-owner@vger.kernel.org To: Dan Carpenter Cc: "James E.J. Bottomley" , Xiangliang Yu , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org List-Id: linux-scsi@vger.kernel.org On 08/16/2012 07:04 AM, Dan Carpenter wrote: > The "1 << (slot_idx % 32)" condition is always true. The intent was to > test a bit field here using bitwise AND. We do the test correctly a few > lines later in the do while loop. > > Signed-off-by: Dan Carpenter Acked-by: Jeff Garzik