Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4389999pxk; Wed, 30 Sep 2020 01:20:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy88Bx8FzKxwXtOAD/4Ag02lh3ou5j/rh08tQHQjO9Bw9ql8F4ACaiaIvhGT99UV2AOuyxJ X-Received: by 2002:aa7:d0d4:: with SMTP id u20mr1438227edo.329.1601454042465; Wed, 30 Sep 2020 01:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601454042; cv=none; d=google.com; s=arc-20160816; b=Voq1B6EWr9XaNU+A9iiys3WXbARZXp+WaWN0MvYiUlHZI77n1DQ4Akl7M6vhDpLI3G vriTgroSlqXQob1SkXXRo/5EFW1YJtOUqD99rnmZJ7CxolHmCqTW7e2bLZi1H8jA00RX hJosF+LGn/86cBFccJCntZqBGNKyJPDfStbWp93s12dfh+qXO1ghPyRBi+PhuPTtaE1j zPj5UlScXaz0c5Jl2v5KGhI/carxuMVglPl2mzr6MphVTMDpRNybstjrvzUh5jKrGeLj kxr/LTw0lLauXM9OTY6b6v9xhHDvSjDBQ5pHRmzxW2Hl1B7OsMKdUh79TQck0Naox/B8 MN+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=h4w3e7qJEtjVnfDVYuSun6L8PoNlGDI3H3HS6dZHv0o=; b=Bk7inzNhR/cU8R7ec+GD3o9fOPgUKJXBtD5tVaH7LNzvtuVaZu1cBLw7N7AROe0Mvo CaWcDDSAo29pefRawuzwSnTgjnwzots8B/X4oAkcBpSlpAxR5IBu3uTXVa8UB0jXuu4Q H/XqfyQGILgAGO6f/Ws/0u6C8+aWElJsAkGB91B12gDLUoI++sfnYr71P7vuYnOZpag+ QSXCnn/fLVz1Fp+IfGKcTiPua/venLUsr7tNJrneVDf+2KlQ5ha+XWE3aKSYh8ZXtBfP WTKv3GGrRDnUKA6nZmdARqSfgRRKHn6Jw7++/2xUtvyJtzdCNYo2wT3JAcolK9jh594A nCVw== 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 l25si508353edv.228.2020.09.30.01.20.20; Wed, 30 Sep 2020 01:20:42 -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 S1728349AbgI3IT2 (ORCPT + 99 others); Wed, 30 Sep 2020 04:19:28 -0400 Received: from smtp23.cstnet.cn ([159.226.251.23]:59882 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725535AbgI3IT2 (ORCPT ); Wed, 30 Sep 2020 04:19:28 -0400 Received: from localhost.localdomain (unknown [159.226.5.100]) by APP-03 (Coremail) with SMTP id rQCowAC3vlZ1P3Rfy_SiAA--.33255S2; Wed, 30 Sep 2020 16:19:01 +0800 (CST) From: Xu Wang To: a.hajda@samsung.com, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, daniel@ffwll.ch, airlied@linux.ie Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/bridge: ti-sn65dsi86: remove redundant null check Date: Wed, 30 Sep 2020 08:18:59 +0000 Message-Id: <20200930081859.52431-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: rQCowAC3vlZ1P3Rfy_SiAA--.33255S2 X-Coremail-Antispam: 1UD129KBjvdX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nvoduhdfq/1tbiCwYPA1z4jeNkuwAAsU Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Because clk_disable_unprepare already checked NULL clock parameter, so the additional checks are unnecessary, just remove it Signed-off-by: Xu Wang --- 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