From patchwork Tue Jun 10 16:08:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 31681 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0A54B2054B for ; Tue, 10 Jun 2014 16:28:48 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id a41sf7510213yho.5 for ; Tue, 10 Jun 2014 09:28:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=GUG0+m3TWAw4/XSKojOQ628ujoXqveLXGSuQVC649uI=; b=WEOArYxpSysXi6gojCoxl/ai31OMNBVx1h84ELbb/6EQeRvdnuwr+btemFfF5BKp2L dVQd+VUUGJLyGDyn5LuXqUNSdIz12DBf9mHXdx4p8qAxdUGwCq6GvxW5q3gLmSZvllis /6y6w1b7PWwuC8sVEY6Df4/PMvBcfiE7SAhGf3z3ZYDaIG6iJ/g8u4M6inc/xB/kuVsw KmDrK7qKQe5EVI6xxBRr6lNHkuaBo9BF6LawErz/LbHvNb4kO6kEx4c1+m5whTyTubGW ixkbNdnh+MbbpK2DxsfTN8H97+PCuNlMYPL2aNEz4l6Ul8etgbyvGysitG1X1Q7G9LCQ iPKw== X-Gm-Message-State: ALoCoQl6DDSXp0CsJiXieHatUM+fd1N8KEdauXoV8SZ2oTxiF45xQuJOjsNvpD1rONuf+Lvw5Xbx X-Received: by 10.236.171.234 with SMTP id r70mr3398170yhl.45.1402417728327; Tue, 10 Jun 2014 09:28:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.180 with SMTP id w49ls2180924qge.3.gmail; Tue, 10 Jun 2014 09:28:48 -0700 (PDT) X-Received: by 10.220.105.136 with SMTP id t8mr21234152vco.13.1402417727853; Tue, 10 Jun 2014 09:28:47 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id sv4si13231572vdc.72.2014.06.10.09.28.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 09:28:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hy4so3819442vcb.6 for ; Tue, 10 Jun 2014 09:28:47 -0700 (PDT) X-Received: by 10.52.114.105 with SMTP id jf9mr1396208vdb.79.1402417727744; Tue, 10 Jun 2014 09:28:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp238604vcb; Tue, 10 Jun 2014 09:28:47 -0700 (PDT) X-Received: by 10.229.57.129 with SMTP id c1mr43403399qch.7.1402417726682; Tue, 10 Jun 2014 09:28:46 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id b38si27440789qge.54.2014.06.10.09.28.46 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Jun 2014 09:28:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:41110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuOuk-0007sB-22 for patch@linaro.org; Tue, 10 Jun 2014 12:28:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuOu0-0006Fx-BT for qemu-devel@nongnu.org; Tue, 10 Jun 2014 12:28:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuOtt-0007Xp-V8 for qemu-devel@nongnu.org; Tue, 10 Jun 2014 12:28:00 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:38437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuOtt-0007XK-Nf; Tue, 10 Jun 2014 12:27:53 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 13BF3412C5; Tue, 10 Jun 2014 20:27:53 +0400 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id 36B916D9; Tue, 10 Jun 2014 20:08:51 +0400 (MSK) Received: (nullmailer pid 13319 invoked by uid 1000); Tue, 10 Jun 2014 16:08:47 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Tue, 10 Jun 2014 20:08:32 +0400 Message-Id: <1402416523-13212-15-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1402416523-13212-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1402416523-13212-1-git-send-email-mjt@msgid.tls.msk.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Peter Maydell , Michael Tokarev Subject: [Qemu-devel] [PULL 14/25] hw/misc/milkymist-softusb: Remove unused softusb_{read, write}_pmem() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mjt@tls.msk.ru X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Maydell The functions softusb_read_pmem() and softusb_write_pmem() are unused; remove them. Signed-off-by: Peter Maydell Signed-off-by: Michael Tokarev --- hw/input/milkymist-softusb.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/hw/input/milkymist-softusb.c b/hw/input/milkymist-softusb.c index 53ba714..1b4b8d4 100644 --- a/hw/input/milkymist-softusb.c +++ b/hw/input/milkymist-softusb.c @@ -156,31 +156,6 @@ static inline void softusb_write_dmem(MilkymistSoftUsbState *s, memcpy(s->dmem_ptr + offset, buf, len); } -static inline void softusb_read_pmem(MilkymistSoftUsbState *s, - uint32_t offset, uint8_t *buf, uint32_t len) -{ - if (offset + len >= s->pmem_size) { - error_report("milkymist_softusb: read pmem out of bounds " - "at offset 0x%x, len %d", offset, len); - memset(buf, 0, len); - return; - } - - memcpy(buf, s->pmem_ptr + offset, len); -} - -static inline void softusb_write_pmem(MilkymistSoftUsbState *s, - uint32_t offset, uint8_t *buf, uint32_t len) -{ - if (offset + len >= s->pmem_size) { - error_report("milkymist_softusb: write pmem out of bounds " - "at offset 0x%x, len %d", offset, len); - return; - } - - memcpy(s->pmem_ptr + offset, buf, len); -} - static void softusb_mouse_changed(MilkymistSoftUsbState *s) { uint8_t m;