From patchwork Tue Oct 21 17:18:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 39196 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 705EC2039B for ; Tue, 21 Oct 2014 17:19:22 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id b6sf1069356lbj.7 for ; Tue, 21 Oct 2014 10:19:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=66oSZpAui2OsSwdg2Q1pQ4z8NsVmui8LMqSP+WDJekc=; b=GUo3X7ui5UULUBhO1RSCmU/P58OMbqRqXFpSsVi0Fy0i2IxdeCx33FX0ap47uN3i0/ O6FPeYhIL2154KEsKqTc5530z5FadRY0irN7TT7kiZOHGJNc+HINyvYPjpCtYvJ+6L3Z IosvtEsZ+fibt3HdtQP3iMENfLmkAyAXZbxwwnvVVwfJvveAf6FqdSJeHrVm1FA6rKBK 2mrGWRwTvfIV0Tr5BUwcjlvZvI4pLvAFnWQj9aUZIS9QJ2x9WzlrZ/tGYFGNMsofZoip Bq1VtP++GOLIXylrf+3SJK2U2pH/LESyCloq0njVPoxytzSwtic6dT/VCj9Yuj7JVADe Iukw== X-Gm-Message-State: ALoCoQlftKoV2brO4iuBCox/N5wE2SUneDtOEMe6QF/RNX8eNKgJ+aSg+vCTnZAJ8EI2Yn9Xb1NT X-Received: by 10.180.72.141 with SMTP id d13mr3788977wiv.6.1413911961302; Tue, 21 Oct 2014 10:19:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.133 with SMTP id b5ls78197lah.26.gmail; Tue, 21 Oct 2014 10:19:21 -0700 (PDT) X-Received: by 10.152.170.131 with SMTP id am3mr1033373lac.15.1413911961060; Tue, 21 Oct 2014 10:19:21 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id u2si19954558lal.70.2014.10.21.10.19.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 10:19:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id 10so1394106lbg.32 for ; Tue, 21 Oct 2014 10:19:20 -0700 (PDT) X-Received: by 10.152.120.199 with SMTP id le7mr2382207lab.67.1413911960899; Tue, 21 Oct 2014 10:19:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.84.229 with SMTP id c5csp545195lbz; Tue, 21 Oct 2014 10:19:20 -0700 (PDT) X-Received: by 10.152.23.3 with SMTP id i3mr12045736laf.53.1413911960477; Tue, 21 Oct 2014 10:19:20 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id l5si12677433lag.57.2014.10.21.10.19.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 10:19:20 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id u10so1437059lbd.29 for ; Tue, 21 Oct 2014 10:19:20 -0700 (PDT) X-Received: by 10.112.51.40 with SMTP id h8mr4941463lbo.91.1413911960332; Tue, 21 Oct 2014 10:19:20 -0700 (PDT) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id uh7sm4791085lac.1.2014.10.21.10.19.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Oct 2014 10:19:19 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Chris Ball Subject: [PATCH 01/15] mmc: core: Remove mmc_free_ext_csd() Date: Tue, 21 Oct 2014 19:18:59 +0200 Message-Id: <1413911953-19012-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413911953-19012-1-git-send-email-ulf.hansson@linaro.org> References: <1413911953-19012-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Let callers of mmc_free_ext_csd() do kfree() directly instead. Signed-off-by: Ulf Hansson --- drivers/mmc/core/mmc.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index a301a78..87ee28f 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -632,12 +632,6 @@ out: return err; } -static inline void mmc_free_ext_csd(u8 *ext_csd) -{ - kfree(ext_csd); -} - - static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) { u8 *bw_ext_csd; @@ -711,7 +705,7 @@ static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) err = -EINVAL; out: - mmc_free_ext_csd(bw_ext_csd); + kfree(bw_ext_csd); return err; } @@ -1545,14 +1539,14 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, if (!oldcard) host->card = card; - mmc_free_ext_csd(ext_csd); + kfree(ext_csd); return 0; free_card: if (!oldcard) mmc_remove_card(card); err: - mmc_free_ext_csd(ext_csd); + kfree(ext_csd); return err; }