Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3270826pxx; Mon, 2 Nov 2020 04:48:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwm+JBW45SkZyG6/8YNv/CwcHz4aw22/bRuAFr5lv8rRw+v9WnL/64UxYKErGezBsArElq4 X-Received: by 2002:a17:906:370e:: with SMTP id d14mr15941308ejc.259.1604321309280; Mon, 02 Nov 2020 04:48:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604321309; cv=none; d=google.com; s=arc-20160816; b=CQYzOBJJwoJc4TtKECFb0K2ZYgzHHS0qjHX2IFs2F/QF1fdstqlaxeihXce6RMrmPw wlp1Ml10Vosevidyjmht1YPlKXi0SqzetRqVlUqkm60rSojVr3yWUcpeuQcXj0rgC7Qn PLvJ/szw/3q8LGGIF6o8SfUyzG18Q0KxmORx09c4t0dnu7MBlyWEkZ+hOoa8iCbyaGW7 dK8vmuND+qbdS4WpBQGnrTqZfonkJjbKpqTuErxmdHZx3BIYkM0Z0Xj2mAWaO+pip2CG Iffx1glM43yFxAtyBfBr0uYFoHuZVAfWw0H2mM9YlhCDw+2YE/RDM9TxvGq6EkHSuS74 yxOg== 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=p4vR77SsJrfuIJ9hWJOHjDbYjvoB21Er4Ym6r+vQk0k=; b=EKPySqNMfuQf/5PWaOfsjJdiBhaArTMBqON7D6FF3keL/Ja9lllRZz6oIzQNcyA5ZC IOdbK260Nd+rKzAFet6ep74KdS4jVFuvScRZasNbn4EiCkIGnjp9+cVSPQnPbWHnAtkr p657kqAYqI3FbbD5fTCagX3Oz7xUURvFctgny8QBBMX2vJ9W8lWxjFySBrXnPIw5XgVf Wz7u5Ddkdq5Xd9VM2MUCa8fAVsL9hPSigaLYZ51IVJQX0RYk/CSTS4VEc8b2ufFnEJOt 7O6AmtvQY6rP3uOSRG+lJhMd3nxuz+VkY8XCsvifjwyJU3FTSmTwrIkNLTVLxmvVXESR G4Yg== 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 eb7si10100928edb.328.2020.11.02.04.48.06; Mon, 02 Nov 2020 04:48:29 -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; 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 S1728821AbgKBMpe (ORCPT + 99 others); Mon, 2 Nov 2020 07:45:34 -0500 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:35452 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728678AbgKBMpe (ORCPT ); Mon, 2 Nov 2020 07:45:34 -0500 Received: from ubuntu.localdomain (unknown [58.213.83.156]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id 30DFF482E62; Mon, 2 Nov 2020 20:45:31 +0800 (CST) From: Bernard Zhao To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Kalyan Thota , Drew Davenport , Abhinav Kumar , Kuogee Hsieh , Zheng Bin , Chandan Uddaraju , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Bernard Zhao Subject: [PATCH] drm/msm: delete conversion from bool value to bool variable Date: Mon, 2 Nov 2020 04:45:16 -0800 Message-Id: <20201102124524.6027-1-bernard@vivo.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQkMaTExOGhoYQk5NVkpNS09ISUpKSEpOTE1VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6K006Exw5OD8aShoSLTQcMk4B KU4aC09VSlVKTUtPSElKSkhKQk9DVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlOQ1VJ SkhVQ0hVSk5NWVdZCAFZQUlOT043Bg++ X-HM-Tid: 0a7588fdbbe393bakuws30dff482e62 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the conversion from bool value to bool variable. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c index f7f5c258b553..e99a543da243 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c @@ -1362,7 +1362,7 @@ void dpu_encoder_register_frame_event_callback(struct drm_encoder *drm_enc, unsigned long lock_flags; bool enable; - enable = frame_event_cb ? true : false; + enable = (frame_event_cb != NULL); if (!drm_enc) { DPU_ERROR("invalid encoder\n"); -- 2.29.0