From patchwork Tue Feb 4 08:54:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 183064 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp5064325ile; Tue, 4 Feb 2020 00:55:21 -0800 (PST) X-Received: by 2002:a2e:9118:: with SMTP id m24mr16665176ljg.105.1580806521075; Tue, 04 Feb 2020 00:55:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580806521; cv=none; d=google.com; s=arc-20160816; b=fd5Gdh2ggNR0taasSkBfBLMHD9DtfhsgsimMWZldSrcYi++0cRXjH4oiN2IKUtY2sO /jFihP1XJqWfPzfd/RqvMsKlbG+F7Tpk6sQn0+jGEcce9jHEQ+IsBB4MihhXNm+Pgeuu GIrLX10TmYvrfotC8OkhPNVF38UGu4bfBvSVCFEg56LwcWwdJQEH6zUFMzh/AmPfGrjY pyywUMD8x408MDxxnAu64NQPo/ysoHpgMhq///OHIB16mvLwZuaPyxA0rU0hyneIsSui dxnVg00eK0PdOFXvc5XP6GTIziDrRV5WrKe+KBMRabetUzoQRJydWYhj61tVS70mXwua C4yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PxbxjkKlNhhTJR8wRb3j/yvmTz9T7alicVi9qKEvd6o=; b=SlhWq5WsRDi0B9I8jCIKQ/UHO4sfCdqPTtAGw0ikxOhlUatg2tDdS1wEMaZwAVIKDT BazMarG5vaZpt+UtG4JXAelmGMocMlbhGxo77QKwRyBlY5/Xsd+pYAZmBJsfW8Ib7yG+ NHZF2LMyxJ6Ueup3PcHBw6285dBWnBvP4fFDYGJKGKA7Q2kkJqQavyLDsBDTySCbfVe4 NUvjb9aOALj7w19VKRTcAuNJD7ccWviVRCwBTOwS3u5huu0eyMrq/shL1/2BfCWqlXBx XnXHvMybcfAWIJL/KMUz6cbKbIjVDs3UP864K7nJ9jgF2FGWIFZKcPFJ90Us1UIgD5my jOtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ru9kADQD; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id q10sor12306246ljm.28.2020.02.04.00.55.20 for (Google Transport Security); Tue, 04 Feb 2020 00:55:21 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ru9kADQD; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PxbxjkKlNhhTJR8wRb3j/yvmTz9T7alicVi9qKEvd6o=; b=ru9kADQD0UXkQwACZ1GbT3/7W1cbzO3TD6QfNYomaEic6ZW8/P8bpbj/lQDza77mgj saohAAZU31Y25zx4SvlEShhJrwpWpH3KACfbY+YSNlCjrZqDt2/VXjA/kTrDci3R4Lkb 4KMgVDun7UUS+70S52mzQgWv3q07xb8H8k6qk+mY8S+Z8eOJTj6niSB0wB9RqInRnfqm FL/K3avNb8/22wUk1TdX0Hs4bNabuaX9PNU1zeVNGFoFpu2EEuYo8aZO2gXuL9VRYKDA LFDTELOQn8Gnha2wzuoXcZly7kbC9iJgdqvbbGY9sIbwiqOi/IZYo57KL9vpoesoYvMu Y88w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PxbxjkKlNhhTJR8wRb3j/yvmTz9T7alicVi9qKEvd6o=; b=mjM67vbRivUu6M29uM8C7iaQAvDhYZ78zVx3BIs4CSxZfc77kx0b+y/OjavHYa5KfU 59YT4tcNpWqzljuq1x03MqaAtCqKiKtWSjTENCsqbcyKsHV/I+aoRHRVB0aUN2foJJCb 1kKBB+anPKFn8pBHHMLrSSrwuG77XTwUFrdic/RnpxK3e5+fhrGQDUB3m/jaRkkSzYV2 zYlELAOz3k71FVuDhQuO/lozOXS6lNcas7ps+0UAjjGoDDxbSVgKZJ+o/8MK7osmEx1a n/+Klqd6m4ARb6JKiPJcIjJlE9sj/Q6DbRK552ZRtCfnNSYqAe+lspE/U3HbG0eVJWcV mXTA== X-Gm-Message-State: APjAAAXBr9YcbQbCH+WSyrjdyUAEDWnzZKmqUr0lu58WIXu45ChoitgJ GHV3bpm1wN5spZDk8oBEdS0HS4+b X-Google-Smtp-Source: APXvYqxBCaIkCrcu5yJjmmxvB9EeCOgJ6U/zMI4geDwFqG525WpbeRBDbVdUFdJRhrvZBnZgPwV8dQ== X-Received: by 2002:a2e:9e19:: with SMTP id e25mr17858308ljk.179.1580806520658; Tue, 04 Feb 2020 00:55:20 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id n2sm11156283ljj.1.2020.02.04.00.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 00:55:20 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Adrian Hunter , Wolfram Sang , Ludovic Barre , Baolin Wang , Linus Walleij , Chaotian Jing , Shawn Lin , mirq-linux@rere.qmqm.pl Subject: [PATCH 09/12] mmc: core: Drop redundant out-parameter to mmc_send_hpi_cmd() Date: Tue, 4 Feb 2020 09:54:46 +0100 Message-Id: <20200204085449.32585-10-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200204085449.32585-1-ulf.hansson@linaro.org> References: <20200204085449.32585-1-ulf.hansson@linaro.org> The 'u32 *status' is unused by the caller, so let's drop it. Signed-off-by: Ulf Hansson --- drivers/mmc/core/mmc_ops.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 5643277a4eeb..4d8f90d01740 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -827,7 +827,7 @@ int mmc_bus_test(struct mmc_card *card, u8 bus_width) return mmc_send_bus_test(card, card->host, MMC_BUS_TEST_R, width); } -static int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status) +static int mmc_send_hpi_cmd(struct mmc_card *card) { struct mmc_command cmd = {}; unsigned int opcode; @@ -849,8 +849,6 @@ static int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status) err, cmd.resp[0]); return err; } - if (status) - *status = cmd.resp[0]; return 0; } @@ -899,7 +897,7 @@ int mmc_interrupt_hpi(struct mmc_card *card) goto out; } - err = mmc_send_hpi_cmd(card, &status); + err = mmc_send_hpi_cmd(card); if (err) goto out;