From patchwork Tue Mar 26 09:27:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 2335491 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id DB77C3FD40 for ; Tue, 26 Mar 2013 09:31:14 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UKQAc-0001bn-3m; Tue, 26 Mar 2013 09:27:54 +0000 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UKQAZ-0001bQ-3D for linux-arm-kernel@lists.infradead.org; Tue, 26 Mar 2013 09:27:51 +0000 Received: by mail-wi0-f182.google.com with SMTP id hi18so438577wib.15 for ; Tue, 26 Mar 2013 02:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=/8tDXCD6UtHKn3ZbP0e8C3Nomf+oKUr9isvkpzSysD4=; b=whOHDv9LfpQ/Ey6Elc+PXCPFARhc+MTxEd9fGFIj0MtlktKwqyV+cNufwDL724UFNh 14p/H7nB63vEy5y1pbpnRPSnhhicVo4qUPI6LhR9tkT+WkEhhCurSI4fYrUrDpCjr6b5 cI28e6VNpUJ7RAhY6zyKydzue+W6maK2CAGZqCDsNa+jsBELeu0jl7zdbKTPzrMOMKgQ yMxs1IdXlegsikd/CpgWuwf9uNx+cmtXGkEw8PwC78XLjlLpjjsEthp05Q0ogdveiUcB BZC7KFlz3U17ZPPMYNYPnDIKcK9Ak/xiUHkwzNaJIcYEowx1Bm1tWWfMmqBvfa1ZV7qs h4tw== X-Received: by 10.180.10.105 with SMTP id h9mr1754373wib.34.1364290066861; Tue, 26 Mar 2013 02:27:46 -0700 (PDT) Received: from ubi.home (32.pool85-58-18.dynamic.orange.es. [85.58.18.32]) by mx.google.com with ESMTPS id g4sm2046143wib.11.2013.03.26.02.27.45 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 26 Mar 2013 02:27:46 -0700 (PDT) From: Matthias Brugger To: Ben Dooks , Kukjin Kim , Grant Likely , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, spi-devel-general@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] spi: spi-s3c64xx.c Remove unused argument. Date: Tue, 26 Mar 2013 10:27:35 +0100 Message-Id: <1364290055-2970-1-git-send-email-matthias.bgg@gmail.com> X-Mailer: git-send-email 1.7.11.7 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130326_052751_249439_8BBF7A10 X-CRM114-Status: GOOD ( 10.86 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (matthias.bgg[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Matthias Brugger X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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 The pointer to the driver data is never used to get the slave controller data. We can delete the unused argument from the function. Signed-off-by: Matthias Brugger --- drivers/spi/spi-s3c64xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index e862ab8..7f5f8ee 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -817,7 +817,6 @@ static int s3c64xx_spi_unprepare_transfer(struct spi_master *spi) } static struct s3c64xx_spi_csinfo *s3c64xx_get_slave_ctrldata( - struct s3c64xx_spi_driver_data *sdd, struct spi_device *spi) { struct s3c64xx_spi_csinfo *cs; @@ -874,7 +873,7 @@ static int s3c64xx_spi_setup(struct spi_device *spi) sdd = spi_master_get_devdata(spi->master); if (!cs && spi->dev.of_node) { - cs = s3c64xx_get_slave_ctrldata(sdd, spi); + cs = s3c64xx_get_slave_ctrldata(spi); spi->controller_data = cs; }