From patchwork Sat Jun 7 17:05:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 31525 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AE2D02100A for ; Sat, 7 Jun 2014 17:05:28 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf206387ykp.1 for ; Sat, 07 Jun 2014 10:05:28 -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:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=MKDFVe/Td6y3ez59uxGn67xsRRBk0cSko0Df5jJXxmg=; b=BpcIp/ecJObdWyQ2lPxUnWtt2VA5jBbJnKhTl5M0YhIF6RqUEmquS80lzlUrj+xodA oVwuhCQ0FCP1yUrKhnRH/KR5uFoTceChHDonH5OvkpnyehMtkoFxqpnlI3pi9N8aVRkz kkp/XevCoF9vDNGp0GjIsssFdrcQPy9qceYFTt9+7PABUQ+szNodU5krutzlSz+qW9yY wij0fuWZ9N2KVJCrE2VQyjaRWTr4eC25wWAHbAeGpPb9zuLbVeETK2VLFeuC/HRViacR /7xeKnVlLIhIo3871z2lVAzIXCZ01pHy3HJrcoiZnjdkGV3zTE+7FbAd9hCu9zdtzA5U vwGA== X-Gm-Message-State: ALoCoQl/WyjFmZkfyGkniqf0koqQ4yx3AHBaHE3SnSxANMcq3kQXtgFfDp8PDh4GyKmLfvTaaact X-Received: by 10.236.35.5 with SMTP id t5mr1000569yha.9.1402160728527; Sat, 07 Jun 2014 10:05:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.44.36 with SMTP id f33ls1024740qga.19.gmail; Sat, 07 Jun 2014 10:05:28 -0700 (PDT) X-Received: by 10.52.244.84 with SMTP id xe20mr11856416vdc.3.1402160728423; Sat, 07 Jun 2014 10:05:28 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id p1si4755286veh.91.2014.06.07.10.05.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Jun 2014 10:05:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.182 as permitted sender) client-ip=209.85.128.182; Received: by mail-ve0-f182.google.com with SMTP id sa20so4886010veb.13 for ; Sat, 07 Jun 2014 10:05:28 -0700 (PDT) X-Received: by 10.220.44.20 with SMTP id y20mr12165791vce.60.1402160728327; Sat, 07 Jun 2014 10:05:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp29982vcb; Sat, 7 Jun 2014 10:05:27 -0700 (PDT) X-Received: by 10.180.74.108 with SMTP id s12mr17158801wiv.61.1402160727369; Sat, 07 Jun 2014 10:05:27 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id m2si3478982wiz.34.2014.06.07.10.05.26 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 07 Jun 2014 10:05:27 -0700 (PDT) Received-SPF: none (google.com: pm215@archaic.org.uk does not designate permitted sender hosts) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WtK3a-0003g1-II; Sat, 07 Jun 2014 18:05:26 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org Subject: [PATCH] hw/misc/milkymist-softusb: Remove unused softusb_{read, write}_pmem() Date: Sat, 7 Jun 2014 18:05:26 +0100 Message-Id: <1402160726-14108-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The functions softusb_read_pmem() and softusb_write_pmem() are unused; remove them. Signed-off-by: Peter Maydell --- 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;