Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp179854rdg; Tue, 10 Oct 2023 07:28:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtaiKIxzcIMUO5oJfNngZ7rtd4vfo6anagQ+KPMHdZ9udj5TMI7pkmH0/RIkH6uEgl7BJC X-Received: by 2002:a05:6830:6685:b0:6c4:be02:635f with SMTP id cq5-20020a056830668500b006c4be02635fmr23643042otb.5.1696948113000; Tue, 10 Oct 2023 07:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696948112; cv=none; d=google.com; s=arc-20160816; b=YdzKvkjjzeee5te8ljbv0KWRaToLKyNfQ6nHaRVxOIyh7VA0aWS27cSwjxghgzMHVE U/SWlH2gh28ABXOap2wv6ydeCuPnfYLfWjI1PASKU+B+4MNEGdXwrG5u7R9VbD9wRsQw G7YupsCDEQPfuinxkMXIdShKEC0pEOJiSgwAccsRnCLsaTXxpqoGJnJmBJ8JmdPvE6V0 14S+ymvHyn5TtRNzCW+7tgyZkmMFhEvi+Wtefw6t2F3jBwx+toDG4KBMAMpqlX7SMFsK Z4iXMbUcb/isHvFkosKJM2KtaKGTJt2TBCxYtuj3jhbH+mxR04g59If3DpYXoC84qw/d nO/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=alViJn9wr9hEami8tBTxM86DiA2WqQugL84JflHHVFE=; fh=h7BbTTEvbbOWp7m3E87FvCkZ9NfaEe33eXG8nTFq7+E=; b=Qg7Q0kx9kSyUIVL9E5eFErFZ93V+Ox5mF6j1JgeOr4ZEqCcTvhUIIqKwvVVv/9UYti lJidXiDgAUb9Sj2+Up/ybzrsdYGOXrwBISk+6BqQ52miavEV1kn2CQzxMPxeqi0ORf4+ YXQp2cuKXaSq/gpFQ089stcJsXFssm75swy0gxC/GLqfz1W0XtLEbrfqDYPeKKG6pO3n iXT4qyuz8v+J9LX+NooCX+m3+fFoDhLC8c8r7gx7kycko7Hje25Trvwr0KJTNceYLbkU kpgAO7gyj5J81rF61iJwoZ89xh3xRwBa1A2F7nAS8wjLpXBCnV8GZytGuZ1NxAhekfZK l0KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TADHbS7S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id k3-20020a633d03000000b00588e13f4cc8si9028706pga.519.2023.10.10.07.28.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:28:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TADHbS7S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 73EF881C50A0; Tue, 10 Oct 2023 07:28:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233149AbjJJO2P (ORCPT + 99 others); Tue, 10 Oct 2023 10:28:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233146AbjJJO2L (ORCPT ); Tue, 10 Oct 2023 10:28:11 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B263D6 for ; Tue, 10 Oct 2023 07:28:09 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-d865854ef96so6056241276.2 for ; Tue, 10 Oct 2023 07:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696948088; x=1697552888; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=alViJn9wr9hEami8tBTxM86DiA2WqQugL84JflHHVFE=; b=TADHbS7ShwdgF5AOUuae7PRNM2y/+3XUGtoETm1A8TJV0MGjyM/NMdGx89pe+crK8z VAIyDHEgMPYmsGmRSE+vU4M/AV+JIqdvZ0Y63KHUQCcyd2ehW1vH4baYvBHLIv6zrfE7 oLwHVxC7tAoZ2uutx1/WadF4CSl1onHmb/oxQyatUFGp5/3pITf3XusbYGFoUD2fksbj 6z794f8Pcx+bnvDb2ogWhobwgJSg1E48wse3//6hQzBf+0GQI4m5oR248sUv1MBdLcOk m+Bzds9j9brXcthGe+2bgW2NRzmKLIGWLAP8AQBcwfXoCP7Y7Q6pSHsfaqqXem6aeE6u WHSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696948088; x=1697552888; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=alViJn9wr9hEami8tBTxM86DiA2WqQugL84JflHHVFE=; b=VSvKbD6Sz1SGfSmHAdO1nhNwD5mLF4E46etZdcCOXbeRlJerRda0603Aqw7Wr1jeyt LaDq9DFupg3ieFiBnvFLkMEVE9zxYmIS5kDagULyUPFQKy278lRg1ctL1HCG6lGL3wzV pU24/jNhrAUqg1IMndYy9kTrfDTb55RMUUrHAVWxf7e3wrTAqOrouy3+Ss3AGsejuMTP 9B+jj97gfEzRmrMC+3lnosUfaHCH9KJbbPjBoOM8g3I4xX4kLwpPob2shB6Zhbq2nj5m W+uo/42ccOkx9FyV9Bo3t7oFu4U1OZNWy8yDK/bGDBCGj9RZPtL2SwAUPYr7IwhZlQlg 1www== X-Gm-Message-State: AOJu0YyVR20eSd9SunxwXw+2wdFP6rhXSExwd37+r68Z9ZeKE1Yg1Iza zX1V45IcBBHdafNv2XEF9jFw+nEIL4D5K2hDQaFP7MNmOGnx+GGD X-Received: by 2002:a25:cd45:0:b0:d91:1296:947 with SMTP id d66-20020a25cd45000000b00d9112960947mr14699613ybf.40.1696948088333; Tue, 10 Oct 2023 07:28:08 -0700 (PDT) MIME-Version: 1.0 References: <20231006105803.3374241-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20231006105803.3374241-1-andriy.shevchenko@linux.intel.com> From: Ulf Hansson Date: Tue, 10 Oct 2023 16:27:32 +0200 Message-ID: Subject: Re: [PATCH v1 1/2] mmc: sdhci-pltfm: Drop unnecessary error messages in sdhci_pltfm_init() To: Andy Shevchenko Cc: Adrian Hunter , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 10 Oct 2023 07:28:28 -0700 (PDT) X-Spam-Level: ** On Fri, 6 Oct 2023 at 12:58, Andy Shevchenko wrote: > > The devm_platform_ioremap_resource() and platform_get_irq() print > the error messages themselves and our "failed" one brings no value > and just noise. Refactor code to avoid those noisy error messages. > > Signed-off-by: Andy Shevchenko Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci-pltfm.c | 22 +++++++--------------- > 1 file changed, 7 insertions(+), 15 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c > index a72e123a585d..4d1a703a5bdb 100644 > --- a/drivers/mmc/host/sdhci-pltfm.c > +++ b/drivers/mmc/host/sdhci-pltfm.c > @@ -115,26 +115,21 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev, > { > struct sdhci_host *host; > void __iomem *ioaddr; > - int irq, ret; > + int irq; > > ioaddr = devm_platform_ioremap_resource(pdev, 0); > - if (IS_ERR(ioaddr)) { > - ret = PTR_ERR(ioaddr); > - goto err; > - } > + if (IS_ERR(ioaddr)) > + return ERR_CAST(ioaddr); > > irq = platform_get_irq(pdev, 0); > - if (irq < 0) { > - ret = irq; > - goto err; > - } > + if (irq < 0) > + return ERR_PTR(irq); > > host = sdhci_alloc_host(&pdev->dev, > sizeof(struct sdhci_pltfm_host) + priv_size); > - > if (IS_ERR(host)) { > - ret = PTR_ERR(host); > - goto err; > + dev_err(&pdev->dev, "%s failed %pe\n", __func__, host); > + return ERR_CAST(host); > } > > host->ioaddr = ioaddr; > @@ -152,9 +147,6 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev, > platform_set_drvdata(pdev, host); > > return host; > -err: > - dev_err(&pdev->dev, "%s failed %d\n", __func__, ret); > - return ERR_PTR(ret); > } > EXPORT_SYMBOL_GPL(sdhci_pltfm_init); > > -- > 2.40.0.1.gaa8946217a0b >