* [Resend][PATCH] drm/msm: delete conversion from bool value to bool variable
@ 2020-11-10 8:10 Bernard
0 siblings, 0 replies; only message in thread
From: Bernard @ 2020-11-10 8:10 UTC (permalink / raw)
To: Rob Clark, Sean Paul, David Airlie, Daniel Vetter, Kalyan Thota,
Drew Davenport, Abhinav Kumar, Kuogee Hsieh, Zheng Bin,
Chandan Uddaraju, Ville Syrjälä,
linux-arm-msm, dri-devel, freedreno, linux-kernel
Cc: opensource.kernel, Bernard Zhao
Remove the conversion from bool value to bool variable.
Signed-off-by: Bernard Zhao <bernard@vivo.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-10 8:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 8:10 [Resend][PATCH] drm/msm: delete conversion from bool value to bool variable Bernard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).