From patchwork Thu Jan 24 04:19:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 156448 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1498785jaa; Wed, 23 Jan 2019 20:20:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN7pZSDjmJpGI2dwB303x45ltDrhWqrRVy1GWnldXt/341PicR5Za0KNojMe6djWnh7jGqpW X-Received: by 2002:a63:790e:: with SMTP id u14mr4554018pgc.452.1548303634013; Wed, 23 Jan 2019 20:20:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548303634; cv=none; d=google.com; s=arc-20160816; b=hxQi1O5LZASDRLPGK4AGlFfO1NsIJM1CsoqwDs2iEK8u9PuFPFbJETMskzVzvDu0zN B3Cz237HqFfO0dO9MsSFh7P9kApJ3JuvYW8iuJ781bAKGV7bklMkAhoIMuHIbnvNcEWN aDlmM2aX6rsOA7oRNJ36esw9fMAc5OU6+FQaywjw8ehNCkVY5WJ8QSCZsjHnA9UmuoKZ xiYO4UXbHYah9Ly2IGJ5Zh+BylKq9SUrnLUFzJZoonBl/eLvaCWk1VBhz6jQ9ps1V8yA DCdHdxDmPPJSyf3bO3v+voU1ZkyVDJl222Ks1D9xO/PqdhHvVhuyoc0wnXYQkNV01Xs2 Zi6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-filter:dkim-signature; bh=5/Z/n/7qsYdIQXnH63DTXXOWciLEn39fZg1bz3QFtJA=; b=pEIMxqPI4IxQ9ujrzzEzIfAnjlhRg0N+MvmPx6NP6MCauyhsi4uP/XeNrKWbx9kwfT mgeibpt7Nkd+ph0v1NytSUsS+SAYJs6rAeIsx2fmHM/xEzbzguUc7QfSwdEfjVwhRZLQ 0cDtJDcC/2s++fB6SLT128S/AB9wQwJYEaUrv9RcOIVzaxx6E0vHoff9K02Hv4S0L6J8 j+iWwSxc64eTMO++Dtbx25ZfFCy4q88eJTaox+9B6UfQ+usO/tdk5ECWBWpgFkbFAtgR rmxwoskxmc9VEvoxo8PWxkrSz0T0rw6IcPODsyWUrbNrSZDxciyzC5yfxw7Wx1RJTFxk D8BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=XSgNFaAJ; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=FWNq4zxH; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id 2si11667299pla.156.2019.01.23.20.20.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jan 2019 20:20:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=XSgNFaAJ; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=FWNq4zxH; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=5/Z/n/7qsYdIQXnH63DTXXOWciLEn39fZg1bz3QFtJA=; b=XSgNFaAJ5DYFG6CZXUCJTbKHZv uaDkcXCWL90062nag4NkL1s4MeYp1mTgKVki7YeDm2w9BH7c6ZdFygeLPuxATwlpG4/4RnoOoOTwQ NFy9H7mNtYrKMwkk/g4yhT3q6V9HKbESs1jDOLUiPaack30ES34PycXJaF6J+lK69LiiSpOV7ORMD 5LvENJkH1X+VUrnrQ13Ox5ejvS5rv8MokJReAi5Q0PJUiNF+sOkHpWONY15Y9y1mD+UmreXOp7x/a cy66/e8epBZpNvJ/6TSztWzkcemR4GFYgnCAjTNE18vuqChR45Sd9JsGrr4uecXnP1Ej1I4ClCzQv 6O7PcpJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmWUs-00015x-UK; Thu, 24 Jan 2019 04:20:10 +0000 Received: from conuserg-12.nifty.com ([210.131.2.79]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmWUj-0000Jk-8k for linux-mtd@lists.infradead.org; Thu, 24 Jan 2019 04:20:03 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id x0O4JI06030691; Thu, 24 Jan 2019 13:19:20 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com x0O4JI06030691 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548303561; bh=VHFb44+xsO5NAj11hpjxC6a3TDCSsDpuFIplJ8wqUP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FWNq4zxHgQ6ZiYuqwmOzc7dKYJWcNBwBgcI3bABzN7iD+b+0WK6ru/YjOgw31kMDM LWlZoL5D/CDctAQEYPgCNZLxpWDK3yE3dM+vaes2iQABu2+TCT6ryrD56gWymertGz YOWnOALTBzuRDwzSTGTbzSJMHlRHRXzmiB5LmGTxmJcfWuq5S4+Afh+wEPkDWaZiF5 w70yrNP8vfbmMWzvI52O+9FaUG7yPbbcuwSP6kdYseV4Uo0G+6Yf5UbObJbfD+1q+9 XipsTAwiXtlXa3TryEMzIGd5tL5y7OL2DNhYsO7JuyWZDmPFnNJcNZ5+BOGNZU1hXE wtgEcMS/LV/Vw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org, Boris Brezillon , Miquel Raynal Subject: [PATCH 2/2] mtd: rawnand: denali: remove unused function argument 'raw' Date: Thu, 24 Jan 2019 13:19:07 +0900 Message-Id: <1548303547-21156-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548303547-21156-1-git-send-email-yamada.masahiro@socionext.com> References: <1548303547-21156-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190123_202001_702503_0A978E34 X-CRM114-Status: GOOD ( 10.37 ) X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [210.131.2.79 listed in list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 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 X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Richard Weinberger , Boris Brezillon , linux-kernel@vger.kernel.org, Masahiro Yamada , Brian Norris , David Woodhouse MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This argument is not used at all. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/denali.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/raw/denali.c b/drivers/mtd/nand/raw/denali.c index 6775644..24aeafc 100644 --- a/drivers/mtd/nand/raw/denali.c +++ b/drivers/mtd/nand/raw/denali.c @@ -473,7 +473,7 @@ static void denali_setup_dma32(struct denali_nand_info *denali, } static int denali_pio_read(struct denali_nand_info *denali, void *buf, - size_t size, int page, int raw) + size_t size, int page) { u32 addr = DENALI_MAP01 | DENALI_BANK(denali) | page; uint32_t *buf32 = (uint32_t *)buf; @@ -501,7 +501,7 @@ static int denali_pio_read(struct denali_nand_info *denali, void *buf, } static int denali_pio_write(struct denali_nand_info *denali, - const void *buf, size_t size, int page, int raw) + const void *buf, size_t size, int page) { u32 addr = DENALI_MAP01 | DENALI_BANK(denali) | page; const uint32_t *buf32 = (uint32_t *)buf; @@ -522,16 +522,16 @@ static int denali_pio_write(struct denali_nand_info *denali, } static int denali_pio_xfer(struct denali_nand_info *denali, void *buf, - size_t size, int page, int raw, int write) + size_t size, int page, int write) { if (write) - return denali_pio_write(denali, buf, size, page, raw); + return denali_pio_write(denali, buf, size, page); else - return denali_pio_read(denali, buf, size, page, raw); + return denali_pio_read(denali, buf, size, page); } static int denali_dma_xfer(struct denali_nand_info *denali, void *buf, - size_t size, int page, int raw, int write) + size_t size, int page, int write) { dma_addr_t dma_addr; uint32_t irq_mask, irq_status, ecc_err_mask; @@ -541,7 +541,7 @@ static int denali_dma_xfer(struct denali_nand_info *denali, void *buf, dma_addr = dma_map_single(denali->dev, buf, size, dir); if (dma_mapping_error(denali->dev, dma_addr)) { dev_dbg(denali->dev, "Failed to DMA-map buffer. Trying PIO.\n"); - return denali_pio_xfer(denali, buf, size, page, raw, write); + return denali_pio_xfer(denali, buf, size, page, write); } if (write) { @@ -595,9 +595,9 @@ static int denali_data_xfer(struct denali_nand_info *denali, void *buf, denali->reg + TRANSFER_SPARE_REG); if (denali->dma_avail) - return denali_dma_xfer(denali, buf, size, page, raw, write); + return denali_dma_xfer(denali, buf, size, page, write); else - return denali_pio_xfer(denali, buf, size, page, raw, write); + return denali_pio_xfer(denali, buf, size, page, write); } static void denali_oob_xfer(struct mtd_info *mtd, struct nand_chip *chip,