Received: from eggs.gnu.org ([208.118.235.92]:37460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjKlG-0004fA-5o for qemu-devel@nongnu.org; Thu, 13 Dec 2012 21:12:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjKlC-0005c5-MT for qemu-devel@nongnu.org; Thu, 13 Dec 2012 21:12:26 -0500 From: Scott Wood Date: Thu, 13 Dec 2012 20:12:04 -0600 Message-ID: <1355451124-2559-7-git-send-email-scottwood@freescale.com> In-Reply-To: <1355451124-2559-1-git-send-email-scottwood@freescale.com> References: <1355451124-2559-1-git-send-email-scottwood@freescale.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 6/6] openpic: s/opp->nb_irqs -1/opp->nb_cpus - 1/ List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Scott Wood , qemu-ppc@nongnu.org, qemu-devel@nongnu.org "opp->nb_irqs-1" would have been a minor coding style error, but putting in one space but not the other makes it look confusingly like a numeric literal "-1". Signed-off-by: Scott Wood --- hw/openpic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/openpic.c b/hw/openpic.c index c0c4307..debd77d 100644 --- a/hw/openpic.c +++ b/hw/openpic.c @@ -433,8 +433,8 @@ static void openpic_reset(DeviceState *d) opp->glbc = GLBC_RESET; /* Initialise controller registers */ - opp->frep = ((opp->nb_irqs -1) << FREP_NIRQ_SHIFT) | - ((opp->nb_cpus -1) << FREP_NCPU_SHIFT) | + opp->frep = ((opp->nb_irqs - 1) << FREP_NIRQ_SHIFT) | + ((opp->nb_cpus - 1) << FREP_NCPU_SHIFT) | (opp->vid << FREP_VID_SHIFT); opp->pint = 0; -- 1.7.9.5