From patchwork Tue May 11 09:33:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 434185 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3651432jao; Tue, 11 May 2021 02:33:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpgOXzWKLiYAsa/wu7Ebx/WwBvxF4OSYXKJXrjthhf4CWJc3XtTBvmKhyRKRkmSav9JY1L X-Received: by 2002:a05:6e02:eac:: with SMTP id u12mr25928693ilj.177.1620725626624; Tue, 11 May 2021 02:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620725626; cv=none; d=google.com; s=arc-20160816; b=Uyu8a+nfjKnFVQhxXCa7gx/TBwi5an1uoJzJ/24xAs4sgZfuAL9OYB6ncJsith4jp4 t0MXgtjFhwB7M8OXmZTJd/Ca3VIOAXDYlq9iKkqVg34VwcF98vYmG+3gaqVTKRC+p/xq DRliN69AOf+/Q3tBUsi8EdQcYn3DvC7yhBfG2bHATh6n/V4OuBxDrCwZK08GzJ9nXmHj XCnfUHN299dYtRsHmNKZc1KFp/dAPc3QCd5mVwJsvdAeg4G5ftRMDvELp81aIxydDzPS rzHH1yZU6vgfzKH1WA61S/1xA2TG4qHl4eczgNGIH+QDc+/c9Yeg5I7uLC1Smwn5al5Q TsjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=F/8VUHEAo8Hn+GzxEBHdnk7BgUfrnnFvLify1V46dWE=; b=sIMxuGIvLoQiwc1tX0AKTiOtnLYfNBLtSliB9YTvZ8Zj9NN+gsNPny97D8zhGLSq9o GMCoKjlbX+FYDRNUm/Y2uBcJ8csTM2m6YuIxGG/jF70h5s4qZtUtVyU36oAJz9GU8cJx OrCKjDPoZzvSoGFl3vqeQQIZ5GXOd6e8OJOeQPM8dkkFPQ6seVTTHw9icRrl/If7iCwh cGgCO8B8FaAK9KhcJWgOBkhbvT8wyN8HHXzK75op5RWCO+6nhKQ8wqdpmu6oQ6HM3b0f ANbPXpsBlvlehc+H/N5h34lH2OsUkQG3KmVqdax1/cOPR5dXGeapFeRCcp5+bjQ2IRMv O+SA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w8si18338068jaw.8.2021.05.11.02.33.46; Tue, 11 May 2021 02:33:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbhEKJev (ORCPT + 4 others); Tue, 11 May 2021 05:34:51 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:2625 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbhEKJev (ORCPT ); Tue, 11 May 2021 05:34:51 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FfXjw3krfzlZTt; Tue, 11 May 2021 17:31:32 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 17:33:35 +0800 From: Zhen Lei To: Paul Cercueil , Ulf Hansson , linux-mips , linux-mmc CC: Zhen Lei Subject: [PATCH 1/1] mmc: jz4740: Remove redundant error printing in jz4740_mmc_probe() Date: Tue, 11 May 2021 17:33:29 +0800 Message-ID: <20210511093329.4670-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org When devm_ioremap_resource() fails, a clear enough error message will be printed by its subfunction __devm_ioremap_resource(). The error information contains the device name, failure cause, and possibly resource information. Therefore, remove the error printing here to simplify code and reduce the binary size. Reported-by: Hulk Robot Signed-off-by: Zhen Lei --- drivers/mmc/host/jz4740_mmc.c | 1 - 1 file changed, 1 deletion(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c index b3c636edbb4610d..861ff6d9661a908 100644 --- a/drivers/mmc/host/jz4740_mmc.c +++ b/drivers/mmc/host/jz4740_mmc.c @@ -1013,7 +1013,6 @@ static int jz4740_mmc_probe(struct platform_device* pdev) host->base = devm_ioremap_resource(&pdev->dev, host->mem_res); if (IS_ERR(host->base)) { ret = PTR_ERR(host->base); - dev_err(&pdev->dev, "Failed to ioremap base memory\n"); goto err_free_host; }