Received: from eggs.gnu.org ([2001:4830:134:3::10]:51762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlJqV-0000SY-DN for qemu-devel@nongnu.org; Fri, 16 May 2014 11:14:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlJqP-0008Tt-9B for qemu-devel@nongnu.org; Fri, 16 May 2014 11:14:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlJqP-0008Tj-1p for qemu-devel@nongnu.org; Fri, 16 May 2014 11:14:45 -0400 From: Markus Armbruster References: <87vbx14gi7.fsf@blackfin.pond.sub.org> Date: Fri, 16 May 2014 17:14:41 +0200 In-Reply-To: <87vbx14gi7.fsf@blackfin.pond.sub.org> (Markus Armbruster's message of "Thu, 30 Jan 2014 16:49:04 +0100") Message-ID: <87lhu1ah7i.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] hw/scsi/megasas.c: (sdev->id & 0xFF) >> 8 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hannes Reinecke Cc: Paolo Bonzini , qemu-devel@nongnu.org Ping? Markus Armbruster writes: > There are several instances of > > ((sdev->id & 0xFF) >> 8) | (sdev->lun & 0xFF) > > or similar. The left operand of | is always 0. Did you intend to shift > to the other right?