Message ID | 1413911953-19012-6-git-send-email-ulf.hansson@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDF57NG2XIHRBINLTKRAKGQEFU2BHWY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CD7D42039B for <linaro@patches.linaro.org>; Tue, 21 Oct 2014 17:19:30 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id e51sf677061eek.10 for <linaro@patches.linaro.org>; Tue, 21 Oct 2014 10:19:29 -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=znkp9j2eyfOvKpiA69Dxk75q4KDO3P0arsnRvqA8P8E=; b=eimvVaRj49UOfZtS0wrCbIpmLXNb7e6cHU6PFBTSv83aG2iNaPyWHgkup//NywDOw3 zIgHBZTLPkc8BTc2opcz8ePOwGTQ4crHGxvZxbBsPiB0/17mzHYpIBTPUyRSXfF9S9bQ pDsWin1OAuCSpCY2Bx4v5smAUW2tNklRZs7ta1tFmlcr9bfG5IHWY2j8C7BNK6MfS5e+ GucG26dAPHpAC6knb5szxpbn6l3WXvAaIH7J0k4omzYnjvaMLzmU4Olk0nl3nDGk4CrN +n2i+0LTuSyeNqFW+IgJNCZw2nOR5sYApwVKQ52NbI2lxoNvSrnv4D/MFmo/ZMOx195u IA6A== X-Gm-Message-State: ALoCoQmi/KeDZQEEUHnvVmaYU+VVc1lknBQLJXlc66zRBY0LF0st4yeUOORHMmBVPHwEqbbg2qDE X-Received: by 10.180.186.142 with SMTP id fk14mr3792167wic.4.1413911969897; Tue, 21 Oct 2014 10:19:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.44 with SMTP id t12ls79008lal.104.gmail; Tue, 21 Oct 2014 10:19:29 -0700 (PDT) X-Received: by 10.112.167.130 with SMTP id zo2mr36335668lbb.4.1413911968266; Tue, 21 Oct 2014 10:19:28 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id pi7si20007837lbb.15.2014.10.21.10.19.28 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 10:19:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id pn19so1497286lab.0 for <patchwork-forward@linaro.org>; Tue, 21 Oct 2014 10:19:28 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr36520200lbb.46.1413911968114; Tue, 21 Oct 2014 10:19:28 -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 c5csp545222lbz; Tue, 21 Oct 2014 10:19:27 -0700 (PDT) X-Received: by 10.152.243.8 with SMTP id wu8mr36162917lac.21.1413911967445; Tue, 21 Oct 2014 10:19:27 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id j9si20004949lab.13.2014.10.21.10.19.27 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 10:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id n15so1397074lbi.39 for <patches@linaro.org>; Tue, 21 Oct 2014 10:19:27 -0700 (PDT) X-Received: by 10.112.146.37 with SMTP id sz5mr36050386lbb.27.1413911967345; Tue, 21 Oct 2014 10:19:27 -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.25 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Oct 2014 10:19:26 -0700 (PDT) From: Ulf Hansson <ulf.hansson@linaro.org> To: linux-mmc@vger.kernel.org, Ulf Hansson <ulf.hansson@linaro.org>, Chris Ball <chris@printf.net> Subject: [PATCH 05/15] mmc: core: Remove unnecessary 'out of memory' message Date: Tue, 21 Oct 2014 19:19:03 +0200 Message-Id: <1413911953-19012-6-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.215.41 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 185d114..1ed3d82 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -198,11 +198,8 @@ static int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd) * raw block in mmc_card. */ ext_csd = kmalloc(512, GFP_KERNEL); - if (!ext_csd) { - pr_err("%s: could not allocate a buffer to " - "receive the ext_csd.\n", mmc_hostname(card->host)); + if (!ext_csd) return -ENOMEM; - } err = mmc_send_ext_csd(card, ext_csd); if (err) {
Rely on the prints handled internally by kmalloc(). Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- drivers/mmc/core/mmc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)