From patchwork Sat Dec 6 22:53:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5450791 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 853BD9F319 for ; Sat, 6 Dec 2014 22:53:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC88E200E5 for ; Sat, 6 Dec 2014 22:53:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B9A95200E1 for ; Sat, 6 Dec 2014 22:53:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XxOC2-0001Bf-JH; Sat, 06 Dec 2014 22:51:14 +0000 Received: from mail-wi0-f170.google.com ([209.85.212.170]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XxOBx-000190-Tj for linux-arm-kernel@lists.infradead.org; Sat, 06 Dec 2014 22:51:11 +0000 Received: by mail-wi0-f170.google.com with SMTP id bs8so4291701wib.3 for ; Sat, 06 Dec 2014 14:50:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rJSBRKw4z6TQBjsTUBNpNxzA836xG3sBPYfGrgRHrZ8=; b=LsKtwW/xiz6PG5hF+ltV7TajUK+9LbvB6L6t8/7eKiqC6rjNtK/lpdRxAaYyS8B1H8 04cchb2AxsUrsCkDsN72HjmOyoHWKm9PyB0QcGcxcK6qW0MbdIN29yAQFlr0BigIgbye AJHbRINHvLqOMn6sU2xXc6BzaD7tKYq2rQzWliFAZF4nKSDzgb2UKZAE8UbZXTtd4/qf ZtWUMcx/A3r4uq+cNwSBP8TAsbKRd8SDUi6bHdxz/y2GV2q8S9NgdaRRnKswXov4Qljb V7sX2R48++NOGANRP2JPZZlZly5xc6s402PBTkM3bG8HKZpFVaAbUaersBw9lLcTfWe8 Qe7A== X-Gm-Message-State: ALoCoQkipySknx2ZFwBJ7t7c3X2KV1E3ixVG3Cya+Q1Ekp5T7WvzPz8Khv2kE9/GUDuUAvhP00Kg X-Received: by 10.195.11.68 with SMTP id eg4mr33834158wjd.18.1417906246440; Sat, 06 Dec 2014 14:50:46 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id pl1sm3466900wic.16.2014.12.06.14.50.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Dec 2014 14:50:45 -0800 (PST) From: Rickard Strandqvist To: Russell King , Grant Likely Subject: [PATCH] arch: arm: common: edma.c: Remove some unused functions Date: Sat, 6 Dec 2014 23:53:26 +0100 Message-Id: <1417906406-5527-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141206_145110_122338_9CCA1523 X-CRM114-Status: GOOD ( 10.22 ) X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, Rickard Strandqvist , Vinod Koul , Sekhar Nori , linux-kernel@vger.kernel.org, Joel Fernandes , Rob Herring , Thomas Gleixner , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Removes some functions that are not used anywhere: edma_shadow0_read() edma_or_array() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Acked-by: Peter Ujfalusi --- arch/arm/common/edma.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index d86771a..163273d 100644 --- a/arch/arm/common/edma.c +++ b/arch/arm/common/edma.c @@ -160,10 +160,6 @@ static inline void edma_modify_array(unsigned ctlr, int offset, int i, { edma_modify(ctlr, offset + (i << 2), and, or); } -static inline void edma_or_array(unsigned ctlr, int offset, int i, unsigned or) -{ - edma_or(ctlr, offset + (i << 2), or); -} static inline void edma_or_array2(unsigned ctlr, int offset, int i, int j, unsigned or) { @@ -174,10 +170,6 @@ static inline void edma_write_array2(unsigned ctlr, int offset, int i, int j, { edma_write(ctlr, offset + ((i*2 + j) << 2), val); } -static inline unsigned int edma_shadow0_read(unsigned ctlr, int offset) -{ - return edma_read(ctlr, EDMA_SHADOW0 + offset); -} static inline unsigned int edma_shadow0_read_array(unsigned ctlr, int offset, int i) {