Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3667896pxj; Mon, 7 Jun 2021 17:21:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2qPgQ3/l3AuKwyAsk1jQ/gJZ58RxZnae/9zmRPDyj45PWCXhaRld+/kgGMZBNxwbov5hr X-Received: by 2002:a17:906:5f93:: with SMTP id a19mr20359529eju.18.1623111708683; Mon, 07 Jun 2021 17:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623111708; cv=none; d=google.com; s=arc-20160816; b=L/Xnxs5sBPcTsnn4PhpmNlEZbdLLACTdt8p/NfTnIdDifiBs2EIItHc9n7uRoZiioX yvJ4/x0qV5WFhUIn1yWQdEGIBNHVdY4dtJag9ncEVR2qnZDjbg0aJYPw/WYOXpjopH2+ okbD8M7xNuueGNRhayzzmV04jYCdonjeK/VIZlQdhCwzhhvA1k3O9vAs3ctaNzCdD5kW 8OxK06q1HZvFkgEGE2Xb7vW4W6bYL2KdNROPNOWjAL1X8j7jMTrNQS81tbXLVrxMDUYV y5mJgefhqCJh18TzYp11hLC2+P2BgZWkueIRwe0P3AjkY2Bp72BK3+hEUn4vzpIhFSYU roLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=aaavP4RLCuyY8ZUXr5tL/PojuwHyDso+6CkQx2td+ro=; b=lKyUiA8iwOsbMMh28knlWThMesXGq5k8NJ3a8rkvqx81mafXDh5KT/iJ43e7CqLesk pFdPUWybAPbcJ8eWt0JK6Lc8eQjqIeEWBbNavMvMwxPQcBkqTDoFFXL4NobCrBgg9MwX ipYpSbmBpqHhZTBCGE4c6E1op3FzuQiSO+LWWmGkg1TuFRClYjJsCGSqga0NnqUNFvoz ZYCwoB/QFLzXgQE+I6AZNhdaAFFMVWW9uRKbO57Lw75DkIdqrasxHePCOc8wQkzHd8PO sVRkq4+z0DlnP5nTN0B6KH2UC2+BH36ThsyfYHOTwN+qI8R9vvGZAN9shBDDedcGWPmw Nv4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gV5zOji+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 4si10982596ejc.663.2021.06.07.17.21.24; Mon, 07 Jun 2021 17:21:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gV5zOji+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbhFHAUc (ORCPT + 99 others); Mon, 7 Jun 2021 20:20:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:44248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbhFHAUb (ORCPT ); Mon, 7 Jun 2021 20:20:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 08E4F61278 for ; Tue, 8 Jun 2021 00:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623111520; bh=NBPR/t6DpZyrcU0kswew7pL5+ZXvRXVXN2mhIR75M3A=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gV5zOji+r2/clAW2Kobd6MnI0MfssYmgx1A7OFqpRsqOuiXpgXhAxKja3W5optCT3 wuQhpkht84p5KG8cExyvNV85/GZC0CSCOV6ubQ02s2AS9JrnllVAKwb+ENsCZeg2cI VybfOTx9cW4Nr5y5nHIkeHQfAAwFS0GAhpwkYjOB6G1QauforodVXCE0G74xM+vqVS 6rotESXDnqMABHo8l2b296r38xnuDu1C9L2huoX83MOkZW4s008WmiUwea5WdHC0Q+ aczZ+y8zonQasglwTTyXQiLFHlCejATeI1D+M6Y548293Vd4KKBo79xEFzBLZJx7US 2MEjsu++d57OQ== Received: by mail-ej1-f48.google.com with SMTP id ci15so29536838ejc.10 for ; Mon, 07 Jun 2021 17:18:39 -0700 (PDT) X-Gm-Message-State: AOAM531OqPXk29apW92bVoP+PY8eDUE6zNJ0ih/8Onh1etd4yEZzfdLj G7Irh8apQSeHgB9cxTbbwSpqsx5phadyF4tvgQ== X-Received: by 2002:a17:906:b0cb:: with SMTP id bk11mr20679861ejb.310.1623111518484; Mon, 07 Jun 2021 17:18:38 -0700 (PDT) MIME-Version: 1.0 References: <20210603111455.5963-1-bernard@vivo.com> In-Reply-To: <20210603111455.5963-1-bernard@vivo.com> From: Chun-Kuang Hu Date: Tue, 8 Jun 2021 08:18:27 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/mediatek: remove redundant error log print To: Bernard Zhao Cc: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , DRI Development , "moderated list:ARM/Mediatek SoC support" , Linux ARM , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Bernard: Bernard Zhao =E6=96=BC 2021=E5=B9=B46=E6=9C=883=E6=97=A5= =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=887:15=E5=AF=AB=E9=81=93=EF=BC=9A > > Fix coccicheck warning: > drivers/gpu/drm/mediatek/mtk_dsi.c:1074:2-9: line 1074 is > redundant because platform_get_irq() already prints an error. > > Signed-off-by: Bernard Zhao > --- > drivers/gpu/drm/mediatek/mtk_dsi.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediate= k/mtk_dsi.c > index ae403c67cbd9..e2e4fc8b1360 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > @@ -1082,10 +1082,8 @@ static int mtk_dsi_probe(struct platform_device *p= dev) > > ret =3D devm_request_irq(&pdev->dev, irq_num, mtk_dsi_irq, > IRQF_TRIGGER_NONE, dev_name(&pdev->dev), d= si); devm_request_irq() would have below call stack to allocate memory. When allocate memory fail, it would not print any error message, doesn't it? devm_request_irq() -> devm_request_threaded_irq() -> devres_alloc() -> devres_alloc_node() -> alloc_dr() -> kmalloc_node_track_caller() Regards, Chun-Kuang. > - if (ret) { > - dev_err(&pdev->dev, "failed to request mediatek dsi irq\n= "); > + if (ret) > goto err_unregister_host; > - } > > init_waitqueue_head(&dsi->irq_wait_queue); > > -- > 2.31.0 >