Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1062550pxb; Thu, 4 Feb 2021 04:16:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyauK4PwhygfLOyNNOowKtToSUmceQB0m6OgpEhWmiKcrNaT1xzAD38hF64wba3UfqwNax3 X-Received: by 2002:a50:fd0b:: with SMTP id i11mr7736497eds.387.1612440986631; Thu, 04 Feb 2021 04:16:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612440986; cv=none; d=google.com; s=arc-20160816; b=YarW/3iVZePvmAAErx8UA4ShsJAZTYkqAiMO+EFVv6u9rB+eJj/Pv5TNwj8nCkkss/ ogtse/hzjfk59cPmMFr7DbXODmjr/WNFi4kYSwIex/CQuK2xSC1QEHf++wg564CGrX8q 3FhEofvtlwWdo5PD+vLEv3/dNeVGgnnCHpzyYowDlqRsZHYnQs/QdtkkR/JCm96PL7nB c4INcs9ZnOV/mluTFt+KbaOt9PCRBz/pXV0IVsfAinZDwPb02i7Du/11fE1bpHvg1dSP 0T94Q4za2M/1i8Q2T3rcNB8EEfFhy64EAx0uizWPI5qJyuzQ3L2GizuDR7NDXA7zrnpI i7LQ== 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=+Wshvps9uSwR4KrMERILO+uhM70XPunvXNSvQiLlduc=; b=NrNukWowl5/l/YzdK9eWZFVCjpMSCQMdyQaUEtxSI3FfOmRdry0rfaAR3YtUCGS7K/ n2VZRzN9O9nKcMnruxAk0bT+Q+nxIe++e2A7PAyd6f3soae0oMMLzZiUNdLo/uSvcnRC XJC5QfIRyyLvZ6HXDuqkju+a4iFp/iiO6wloxvfMqJpxhxgtsZKD9796XNDx5lziTnqh Bxek9WLOclQ2gMI5kzfDTvDsyPlPZ7bJjHX5tS712e16/oNsvvRQjtLhjtVHr80rNpYn OqGhTdYIkNgDYgkzyA+VjhrCm0pgjV2yAWzTyFD64hNgkEY+XzhKVcEm33pqc7JmNcua 3q1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U5tKttEe; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si3032188ejr.614.2021.02.04.04.16.00; Thu, 04 Feb 2021 04:16:26 -0800 (PST) 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=@linaro.org header.s=google header.b=U5tKttEe; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235799AbhBDMMj (ORCPT + 99 others); Thu, 4 Feb 2021 07:12:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235664AbhBDMMi (ORCPT ); Thu, 4 Feb 2021 07:12:38 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 272D9C0613D6 for ; Thu, 4 Feb 2021 04:11:58 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id j12so1987800pfj.12 for ; Thu, 04 Feb 2021 04:11:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+Wshvps9uSwR4KrMERILO+uhM70XPunvXNSvQiLlduc=; b=U5tKttEe6xX2g1VC7QFy33Ij2koZAHLIbxXNcQk0Vq9+rpAPr0zbGR7tR7Ckz9nVJn FPlN1o7eSyTN9mohqKjo6Oc5rYcAHzzZAy2Ju6xVX40rYmSgr+ugUCKySdaozJ20fZ/B AHDUaixxzi/f0yuXABZD6cWj+PrkjMetFPPJqWR2OanzNgwehP2yEUks4ssBBfTcbJ1z sNqNlGMb0x6vv6tx0v6ICBBnucY90HY6/ii348RJe+DfSv3OWqepYiZT/DIV8C4salrZ Zqc7xVsVyaoKFUz3d0HCzOXIOa2VUFl4NRwi/QOmcpshHtk/dubCFjJh4R48l7MkucoH 027A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+Wshvps9uSwR4KrMERILO+uhM70XPunvXNSvQiLlduc=; b=RVi1qFg6Ta/clhdGto0XAsMXeObdJrLGaqDTWaiaQTS2hFg4pAQUQLw2mM0m9NLlLZ JbrDzlnu51tu8xQ7391MntgJstiFZhvj5eeoaDyDcc/l5UQK80SFhJgTiwVPxYALqCpy RDk6M3tMwoA3lMLabUVcM3rYQD1KeKXWLN0AX2B/uB389SDelDaeh2z+7Zl6FPY3XNYN 8vnTx6AIya7UqzUOty8HT34dZ0NriZoAmRDIWH/MKTkLZ2WR5xL48h8+JTH9iEKbu6dc 2brE3Vk90yNyzU+d1RQCOeM0wtaaDLUDO64htRobvodq1oYAX9JAUnv+I4UxVoZl6J9x Ygjg== X-Gm-Message-State: AOAM531XyKrq4RYGfENqqeA7thbYQhtBv8mUPP74aiff9IHI97Fp34z4 OSk4MPAYvDzg5m4DhKC4EALofEJf5TFPHUfMAK9INQ== X-Received: by 2002:a63:f953:: with SMTP id q19mr8581621pgk.120.1612440717662; Thu, 04 Feb 2021 04:11:57 -0800 (PST) MIME-Version: 1.0 References: <20210202115707.14410-1-bernard@vivo.com> In-Reply-To: <20210202115707.14410-1-bernard@vivo.com> From: Robert Foss Date: Thu, 4 Feb 2021 13:11:46 +0100 Message-ID: Subject: Re: [PATCH] drm/bridge/analogix: remove redundant when devm_kzalloc failed To: Bernard Zhao Cc: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Tomi Valkeinen , Sam Ravnborg , Andy Yan , Marek Szyprowski , Joe Perches , dri-devel@lists.freedesktop.org, linux-kernel , opensource.kernel@vivo.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Bernard, Thanks for the patch. With the below fixed, feel free to add my r-b. Reviewed-by: Robert Foss On Tue, 2 Feb 2021 at 13:09, Bernard Zhao wrote: > > Line 1590 DRM_ERROR is redundant because devm_kzalloc() already > prints an error. The line number will not be so helpful for reading this commit message in the future, so remove it and maybe just refer to DRM_ERROR being removed. > > Signed-off-by: Bernard Zhao > --- > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > index aa1bb86293fd..8f6258eb9960 100644 > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > @@ -1586,10 +1586,8 @@ static int analogix_dp_create_bridge(struct drm_device *drm_dev, > int ret; > > bridge = devm_kzalloc(drm_dev->dev, sizeof(*bridge), GFP_KERNEL); > - if (!bridge) { > - DRM_ERROR("failed to allocate for drm bridge\n"); > + if (!bridge) > return -ENOMEM; > - } > > dp->bridge = bridge; > > -- > 2.29.0 >