drm/msm: delete conversion from bool value to bool variable
PATCH 1/1 drm/msm: delete conversion from bool value to bool variable
Remove the conversion from bool value to bool variable.
Signed-off-by Bernard Zhao <[email protected]>
--- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +1 -1
@@ -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" );
Signature · 1 line
2.29.0