From patchwork Sat Jun 7 16:48:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 31517 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C82A42100A for ; Sat, 7 Jun 2014 16:49:01 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wm4sf22083388obc.10 for ; Sat, 07 Jun 2014 09:49:01 -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=Q/3m52wbRv5bc52U7n1HDMkUx5uV62hYrjKdHpNAjyo=; b=leKXuiDpRvTIr3vgofZJKcD82oHf4MWj7Xowg9M6NI2jBQP+aitYQw6nNTwCh9JLZb 0Ax/0ugY9GypMv9+wQ/W/iz5DfB2hsnHK4fRisJR2AUXeTar3OQGiGAzkceFKmTicFj7 gH5n0jRVeepS94+wOEaEac6l7k8djDkOmzK6sR1U8o5v8R5XLmJgd2vSv3pwhd5DB5Qv cW7bA10Z8zJ0zxpDPRh5GlgW6g6ANpluCoRDouuAvPvFP1f6jUxQAP2zDmYuumGy2QGQ Hr4Us9d/ZRMoGrfeDBEoJO+sDQoyKHycxh4b3W8ifyGLBXCicd0caA9DLlRLn9I0liVd Rb8w== X-Gm-Message-State: ALoCoQnA8U2BSBWwuNydWo6m7Wc6ihq6Ag051xHKQijCm/DkiFGOvGlhAL7KaG9iF9c+64UAu5Ix X-Received: by 10.50.50.178 with SMTP id d18mr2891707igo.2.1402159741180; Sat, 07 Jun 2014 09:49:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.93.131 with SMTP id d3ls1048113qge.52.gmail; Sat, 07 Jun 2014 09:49:01 -0700 (PDT) X-Received: by 10.58.178.115 with SMTP id cx19mr3652429vec.70.1402159740984; Sat, 07 Jun 2014 09:49:00 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id kp5si9339702veb.19.2014.06.07.09.49.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Jun 2014 09:49:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id la4so4672009vcb.14 for ; Sat, 07 Jun 2014 09:49:00 -0700 (PDT) X-Received: by 10.220.253.132 with SMTP id na4mr12303209vcb.39.1402159740919; Sat, 07 Jun 2014 09:49:00 -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 vs6csp29348vcb; Sat, 7 Jun 2014 09:49:00 -0700 (PDT) X-Received: by 10.194.243.3 with SMTP id wu3mr16973641wjc.29.1402159740214; Sat, 07 Jun 2014 09:49:00 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id fm4si3407608wib.68.2014.06.07.09.48.59 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 07 Jun 2014 09:49:00 -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 1WtJnf-0003YB-3U; Sat, 07 Jun 2014 17:48:59 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org, Peter Crosthwaite Subject: [PATCH] hw/dma/xilinx_axidma: Remove unused stream_halted() function Date: Sat, 7 Jun 2014 17:48:59 +0100 Message-Id: <1402159739-13622-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.220.169 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 stream_halted() function is never used; remove it. Signed-off-by: Peter Maydell --- hw/dma/xilinx_axidma.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hw/dma/xilinx_axidma.c b/hw/dma/xilinx_axidma.c index cc90eb5..ee60d3f 100644 --- a/hw/dma/xilinx_axidma.c +++ b/hw/dma/xilinx_axidma.c @@ -157,11 +157,6 @@ static inline int stream_running(struct Stream *s) return s->regs[R_DMACR] & DMACR_RUNSTOP; } -static inline int stream_halted(struct Stream *s) -{ - return s->regs[R_DMASR] & DMASR_HALTED; -} - static inline int stream_idle(struct Stream *s) { return !!(s->regs[R_DMASR] & DMASR_IDLE);