From patchwork Sun Sep 5 15:06:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 63844 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 07638B70FF for ; Mon, 6 Sep 2010 01:21:18 +1000 (EST) Received: from localhost ([127.0.0.1]:36761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsH1v-0006iI-4A for incoming@patchwork.ozlabs.org; Sun, 05 Sep 2010 11:21:15 -0400 Received: from [140.186.70.92] (port=53369 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsGno-0006lH-BG for qemu-devel@nongnu.org; Sun, 05 Sep 2010 11:06:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsGnn-0000UR-66 for qemu-devel@nongnu.org; Sun, 05 Sep 2010 11:06:40 -0400 Received: from mail-qy0-f180.google.com ([209.85.216.180]:34507) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsGnn-0000UM-3p for qemu-devel@nongnu.org; Sun, 05 Sep 2010 11:06:39 -0400 Received: by qyk31 with SMTP id 31so3889321qyk.4 for ; Sun, 05 Sep 2010 08:06:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=+PxIH4zRvzhyArjSxTEQEeH/+L776ITgQarXxC8QDHE=; b=FFD4s63eLwMHeT8WJX+BhydJJNWuAt8RvXTyz4CwnX5Q4gDSH83aAsZi9y754mr+se yKAc484/GWegepqLs39YYdLTqvp8WJ6MObcnGAXlezA90WbeUwE6YuyUabKeduSx/M0L 14rUvfhtZNbSW9qZyT8gOOHlYPGXA+YIStlpM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=nEynGpl+QnXX4Y0BUyQGmL90+xOwqHjPZHh7XUHYbbGlGW/CjxPUoIh+DpQfCqTyZz ztWeYeHIjGs6ePoaM5KF8PlJb6EMWE1cARoW8FEwDk2xJ+A7scsV5ipmh2L7qRmZrsem /QA9NhqLRicnZQMeE5lSuUlVdJhhbU0r93xwE= Received: by 10.224.36.204 with SMTP id u12mr1799279qad.134.1283699198132; Sun, 05 Sep 2010 08:06:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.240.135 with HTTP; Sun, 5 Sep 2010 08:06:18 -0700 (PDT) From: Blue Swirl Date: Sun, 5 Sep 2010 15:06:18 +0000 Message-ID: To: qemu-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 07/15] pxa2xx: remove useless checks X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Remove checks which were made useless by r5849, 8da3ff180974732fc4272cb4433fef85c1822961. This also fixes a warning with GCC flag -Wtype-limits. Signed-off-by: Blue Swirl --- hw/pxa2xx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) } diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index 26b9205..faa3d95 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -125,7 +125,7 @@ static void pxa2xx_pm_write(void *opaque, target_phys_addr_t addr, break; default: /* Read-write registers */ - if (addr >= PMCR && addr <= PCMD31 && !(addr & 3)) { + if (!(addr & 3)) { s->pm_regs[addr >> 2] = value; break;