Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1478589pxu; Fri, 16 Oct 2020 13:04:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwihuwxlJQb9RkPv9gT6k/5hTYoEFokzbcipDhzkyDpoY6PWflYww1YS17b/RaoYoAb/dwC X-Received: by 2002:a17:906:395a:: with SMTP id g26mr5439742eje.147.1602878663183; Fri, 16 Oct 2020 13:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602878663; cv=none; d=google.com; s=arc-20160816; b=tgLv3MdxKEkNS63ko59XZEXnRmnTIIEUfZIlK5rOSEu3gfMUTkkqKVIJAvEQ3qLl/v dsHhYUeReqZmj8gnom7RpP9NAoxIxPRvBy3oZ5x3TMO7KJjKJfyPB7Pk3tU4btkatiPm KX83QwZBmmfeyYVW/w2J8DDWMF+cWHFuc5WYN82pTbrMLGYV/pJg/MyJcFN4gT6PA9w6 5Kv+c8XmR9XWOXbQ7M1jVr/LN4cUdAOCJfnITZGOmpCAScQOunkuTmuZdwu0TY2g3aN1 xR22Q1os5sjnPoUNZQCKQ5YFaCWgsnYbopBQybqEcIKQSWN1XKyeeezAINkiSoxk61N4 LwtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=7LmOXgox6s/vYHaFdLj59ERtJGHSj3xiBRZyHZw5DZ8=; b=vtw49aRj9yTL3huEbGGzIWQIy9BDx+/hClJL+dwcHG3UdaxZjkhj/KumYXkkhFqV7D BheQnwyrTypJUsO0lBN+v+bzG16SblRUXFc7UfGSUJ3FFN9WEZx33OOT3Z2W1Whil555 9W5leTSvug3YUy2fRl80jXIKHoQ48gXwPW2W1rxCkHG/ljzM4Wh7vVMjIPctuJo6c72c 1KHBZecR7QBU/LzrOZUhK2Y8q2R1ylDYheJSXuL87lGFFcPuCPvorMEK7pNueBgVZP2b pCgTU5D8USpfeXZBWDf8ub/1/F5JDI+c8qvcI/5MrUzG30B7dBdOR2YEj+b8IHIUHhr2 bDkQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si2453216eju.255.2020.10.16.13.04.01; Fri, 16 Oct 2020 13:04:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409964AbgJPTEy (ORCPT + 99 others); Fri, 16 Oct 2020 15:04:54 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:42286 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409944AbgJPTEx (ORCPT ); Fri, 16 Oct 2020 15:04:53 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 13BBD80623; Fri, 16 Oct 2020 21:04:49 +0200 (CEST) Date: Fri, 16 Oct 2020 21:04:47 +0200 From: Sam Ravnborg To: Xu Wang Cc: a.hajda@samsung.com, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, daniel@ffwll.ch, airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm/bridge: ti-sn65dsi86: remove redundant null check Message-ID: <20201016190447.GB1345100@ravnborg.org> References: <20200930081859.52431-1-vulab@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200930081859.52431-1-vulab@iscas.ac.cn> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=fu7ymmwf c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=e5mUnYsNAAAA:8 a=hVaCtnEc0TjjHIDlNK8A:9 a=1Kb86hCPPUzEXHOj:21 a=4AxGUG8XqSeI4mlC:21 a=CjuIK1q_8ugA:10 a=Vxmtnl_E_bksehYqCbjh:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yu Wang On Wed, Sep 30, 2020 at 08:18:59AM +0000, Xu Wang wrote: > Because clk_disable_unprepare already checked NULL clock parameter, > so the additional checks are unnecessary, just remove it > > Signed-off-by: Xu Wang Thanks, applied to drm-misc-next. I will appear in linux-next in a few weeks. Sam > --- > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c > index 5b6e19ecbc84..1b01836f1eb1 100644 > --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c > +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c > @@ -819,8 +819,7 @@ static void ti_sn_bridge_post_disable(struct drm_bridge *bridge) > { > struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge); > > - if (pdata->refclk) > - clk_disable_unprepare(pdata->refclk); > + clk_disable_unprepare(pdata->refclk); > > pm_runtime_put_sync(pdata->dev); > } > -- > 2.17.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel