From patchwork Sun Dec 21 17:18:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5524421 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D4E2CBEEA8 for ; Sun, 21 Dec 2014 17:15:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D156920121 for ; Sun, 21 Dec 2014 17:15:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F06B72010F for ; Sun, 21 Dec 2014 17:15:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752907AbaLURPh (ORCPT ); Sun, 21 Dec 2014 12:15:37 -0500 Received: from mail-lb0-f179.google.com ([209.85.217.179]:65205 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752370AbaLURPg (ORCPT ); Sun, 21 Dec 2014 12:15:36 -0500 Received: by mail-lb0-f179.google.com with SMTP id z11so2902333lbi.10 for ; Sun, 21 Dec 2014 09:15:35 -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=0SgmwxtGi91aHZk2e8C8EFofuorPXL76DXACiLfApvc=; b=aK0/g/vmHcveo+hnYIrf9au3cs6dLgfHWBlA4fcpxD1HxbXaK21YQxq0lTlL966/yz lAVOpc37/HWKbkND5tneH58vtFnn4pILjQtEjPJyWnkrbLTFzI5vWFM0JK0t9UGR8yu5 N80WViWpkV1z0ewXWYn3FFedYJiqLEccTr4MzpKbQQCzWrtwoOfllRjgX1We7PwQBh+J T6GVG37odnbtKvpKaHOioxxaniF+IMU1GQco0tImoTMtBs14NJ50AuiagZqtRTOlCPqF 8trZKcnIZMNx4AVrDKkmukpPJZMEoErOd3jI3KIC5YI4Y3DTawiu5Jths0YGcskA2YPH D2RQ== X-Gm-Message-State: ALoCoQkJR/4z8RCb/79RlrKY3s7yTBjG+DeugPzvZlZN/7wW7lzL3hFGv09dG3QqFf6HIimfktbR X-Received: by 10.152.115.172 with SMTP id jp12mr17964011lab.33.1419182135394; Sun, 21 Dec 2014 09:15:35 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id v7sm4399386lbb.2.2014.12.21.09.15.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Dec 2014 09:15:34 -0800 (PST) From: Rickard Strandqvist To: Vinod Koul , Dan Williams Cc: Rickard Strandqvist , Grant Likely , Rob Herring , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] dma: imx-dma.c: Remove unused function Date: Sun, 21 Dec 2014 18:18:22 +0100 Message-Id: <1419182302-9672-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Remove the function is_imx21_dma() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/dma/imx-dma.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 9d2c9e7..af1e643 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -230,11 +230,6 @@ static inline int is_imx1_dma(struct imxdma_engine *imxdma) return imxdma->devtype == IMX1_DMA; } -static inline int is_imx21_dma(struct imxdma_engine *imxdma) -{ - return imxdma->devtype == IMX21_DMA; -} - static inline int is_imx27_dma(struct imxdma_engine *imxdma) { return imxdma->devtype == IMX27_DMA;