From patchwork Thu Feb 16 19:41:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9578231 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 56BF660209 for ; Thu, 16 Feb 2017 19:43:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B1D92866A for ; Thu, 16 Feb 2017 19:43:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FF792866D; Thu, 16 Feb 2017 19:43:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB9F22866A for ; Thu, 16 Feb 2017 19:43:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932694AbdBPTnG (ORCPT ); Thu, 16 Feb 2017 14:43:06 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:33524 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933224AbdBPTnF (ORCPT ); Thu, 16 Feb 2017 14:43:05 -0500 Received: by mail-wr0-f194.google.com with SMTP id i10so3256390wrb.0 for ; Thu, 16 Feb 2017 11:43:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=n59Ce4mq1MDjH0pwaGLjqiiutS8IUqNklqpSzSAxDPE=; b=L2y3InRts7vT80ZT8ZhLqYs/5Xt9uplXgl8dAy1TaOMPDy5qF71pL0xGkx3J7dCLle a4O9CskRMk8cwu79zEZGH5VKf8ezGjS7MWjjeJeo6cf0oKLF1N2NoXM13RI9gvflwWK7 5jfbMPCAe0Ec+gBpezectgv7FizCG9yDRPCHQNR3BSohu+tzl42ciAE1Cnq58SgxVq10 dm9m9qbStlKJJFZrFIYQ7ZeuoV9X8D3Vwo1KoknfZMahaF3KKxpdse9hXlzMAQe0wlEq yq566Hxk7/xxZ4Wgdd4ZqRR2whid1DmFzim/nNGN/5VWdukyRpCbOfgt9HpsVG6lo6sN A3eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=n59Ce4mq1MDjH0pwaGLjqiiutS8IUqNklqpSzSAxDPE=; b=icPAXlvTHKlCY/rhxwMiB1P2/AF+VB6RXLxwpluZd8bd6OLI7NVNbZ55nkxkBBa/qe nVV+GZgOTHU7LmS0Wm791N6arMs2ryE4KTjlVe17h86gOMOL8kc+DSw6/yLX5wiYL0fS Z9RdHnDM0rAjyuBVvSvtEdO+GG9V6D3ikOJYes/EIuelY7pJIrvoFS7dfvYHFq6vJ4kY yhUsQBRwqZl4l5hy8gqIvLnSemgWX+2F41BktJ3Qm3TIxL9/hPG7eVfAIQvlcMK7Sk79 G3P6NC4yBgI+140iVJ631r5kMnQJn6ariQQ3QeQV9Nscq38/XVCcwiVScSeOKyUK8U6T O5Zw== X-Gm-Message-State: AMke39kdXotl/pIiEHuM6BLKTneV+0ThraFDw9Ulj9Z92FMDB71hjQ60ypZ76bmZrK4Cnw== X-Received: by 10.223.145.227 with SMTP id 90mr3927662wri.156.1487274184105; Thu, 16 Feb 2017 11:43:04 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:f02a:ffb3:d41d:abac? (p200300C6EBDC4000F02AFFB3D41DABAC.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:f02a:ffb3:d41d:abac]) by smtp.googlemail.com with ESMTPSA id 65sm10127972wri.53.2017.02.16.11.43.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Feb 2017 11:43:03 -0800 (PST) From: Heiner Kallweit Subject: [PATCH v2 2/9] mmc: meson-gx: make two functions return void To: Ulf Hansson , Kevin Hilman References: <7d5263e2-9325-dedb-a5f6-954c4a09e977@gmail.com> Cc: "linux-mmc@vger.kernel.org" , linux-amlogic@lists.infradead.org Message-ID: Date: Thu, 16 Feb 2017 20:41:06 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <7d5263e2-9325-dedb-a5f6-954c4a09e977@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The return value of meson_mmc_request_done and meson_mmc_read_resp isn't used, so make both functions return void. Signed-off-by: Heiner Kallweit Acked-by: Kevin Hilman --- v2: - added acked-by --- drivers/mmc/host/meson-gx-mmc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 07a7399c..b99461ff 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -426,7 +426,8 @@ static void meson_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) __func__, orig, val); } -static int meson_mmc_request_done(struct mmc_host *mmc, struct mmc_request *mrq) +static void meson_mmc_request_done(struct mmc_host *mmc, + struct mmc_request *mrq) { struct meson_host *host = mmc_priv(mmc); @@ -435,8 +436,6 @@ static int meson_mmc_request_done(struct mmc_host *mmc, struct mmc_request *mrq) host->mrq = NULL; host->cmd = NULL; mmc_request_done(host->mmc, mrq); - - return 0; } static void meson_mmc_start_cmd(struct mmc_host *mmc, struct mmc_command *cmd) @@ -554,7 +553,7 @@ static void meson_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) meson_mmc_start_cmd(mmc, mrq->cmd); } -static int meson_mmc_read_resp(struct mmc_host *mmc, struct mmc_command *cmd) +static void meson_mmc_read_resp(struct mmc_host *mmc, struct mmc_command *cmd) { struct meson_host *host = mmc_priv(mmc); @@ -566,8 +565,6 @@ static int meson_mmc_read_resp(struct mmc_host *mmc, struct mmc_command *cmd) } else if (cmd->flags & MMC_RSP_PRESENT) { cmd->resp[0] = readl(host->regs + SD_EMMC_CMD_RSP); } - - return 0; } static irqreturn_t meson_mmc_irq(int irq, void *dev_id)