Received: from eggs.gnu.org ([2001:4830:134:3::10]:55035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8tre-0007nO-1g for qemu-devel@nongnu.org; Thu, 30 Jan 2014 10:49:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8trY-0000XU-4V for qemu-devel@nongnu.org; Thu, 30 Jan 2014 10:49:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:26013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8trX-0000XB-Jm for qemu-devel@nongnu.org; Thu, 30 Jan 2014 10:49:07 -0500 From: Markus Armbruster Date: Thu, 30 Jan 2014 16:49:04 +0100 Message-ID: <87vbx14gi7.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: [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 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?