From patchwork Tue Nov 10 08:10:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernard Zhao X-Patchwork-Id: 11893533 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AE2AB138B for ; Tue, 10 Nov 2020 08:18:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9930920870 for ; Tue, 10 Nov 2020 08:18:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726721AbgKJIS7 (ORCPT ); Tue, 10 Nov 2020 03:18:59 -0500 Received: from m176150.mail.qiye.163.com ([59.111.176.150]:4569 "EHLO m176150.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726690AbgKJIS7 (ORCPT ); Tue, 10 Nov 2020 03:18:59 -0500 X-Greylist: delayed 478 seconds by postgrey-1.27 at vger.kernel.org; Tue, 10 Nov 2020 03:18:57 EST Received: from vivo.com (wm-10.qy.internal [127.0.0.1]) by m176150.mail.qiye.163.com (Hmail) with ESMTP id 994491A3B66; Tue, 10 Nov 2020 16:10:24 +0800 (CST) Message-ID: To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Kalyan Thota , Drew Davenport , Abhinav Kumar , Kuogee Hsieh , Zheng Bin , Chandan Uddaraju , =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= , 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: =?utf-8?q?=5BResend=5D=5BPATCH=5D_drm/msm=3A_delete_conversion_from?= =?utf-8?q?_bool_value_to_bool_variable?= X-Priority: 3 X-Mailer: HMail Webmail Server V2.0 Copyright (c) 2016-163.com X-Originating-IP: 58.213.83.157 MIME-Version: 1.0 Received: from bernard@vivo.com( [58.213.83.157) ] by ajax-webmail ( [127.0.0.1] ) ; Tue, 10 Nov 2020 16:10:24 +0800 (GMT+08:00) From: Bernard Date: Tue, 10 Nov 2020 16:10:24 +0800 (GMT+08:00) X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZSxhNHkofHhpIHR9CVkpNS09CQk5DSU9MSkNVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQQ8JDh5XWRIfHhUPWUFZRzo8MjpROjo2PykREUM0HDweOT83 KhoJLVVKVUpNS09CQk5DSU5JS09VMxYaEhdVGR4JFRoJHzsNEg0UVRgUFkVZV1kSC1lBWU5DVUlK SFVDSFVKTkxZV1kIAVlBSE9LQzcG X-HM-Tid: 0a75b134bc0a93b4kuws994491a3b66 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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");