@@ -274,7 +274,7 @@ struct kms_req_builder *kms_req_builder_new_atomic(struct drmdev *drmdev, struct
274274
275275 builder -> crtc = drm_resources_get_crtc (resources , crtc_id );
276276 if (builder -> crtc == NULL ) {
277- LOG_ERROR ("Invalid CRTC: %" PRId32 "\n" , crtc_id );
277+ LOG_ERROR ("Invalid CRTC: %" PRIu32 "\n" , crtc_id );
278278 goto fail_unref_drmdev ;
279279 }
280280
@@ -319,7 +319,7 @@ struct kms_req_builder *kms_req_builder_new_legacy(struct drmdev *drmdev, struct
319319
320320 builder -> crtc = drm_resources_get_crtc (resources , crtc_id );
321321 if (builder -> crtc == NULL ) {
322- LOG_ERROR ("Invalid CRTC: %" PRId32 "\n" , crtc_id );
322+ LOG_ERROR ("Invalid CRTC: %" PRIu32 "\n" , crtc_id );
323323 goto fail_unref_drmdev ;
324324 }
325325
@@ -699,13 +699,8 @@ static int kms_req_commit_common(
699699 void * release_cb_userdata
700700) {
701701 struct kms_req_builder * builder ;
702- struct drm_blob * mode_blob ;
703- bool update_mode ;
704702 int ok ;
705703
706- update_mode = false;
707- mode_blob = NULL ;
708-
709704 ASSERT_NOT_NULL (req );
710705 builder = (struct kms_req_builder * ) req ;
711706
@@ -733,6 +728,8 @@ static int kms_req_commit_common(
733728 }
734729 }
735730
731+ bool update_mode = false;
732+ struct drm_blob * mode_blob = NULL ;
736733 if (upload_mode ) {
737734 update_mode = true;
738735 mode_blob = drm_blob_new_mode (drmdev_get_modesetting_fd (drmdev ), & builder -> mode , true);
@@ -943,9 +940,8 @@ static int kms_req_commit_common(
943940fail_unref_builder :
944941 kms_req_builder_unref (builder );
945942
946- // fail_maybe_destroy_mode_blob:
947- // if (mode_blob != NULL)
948- // drm_blob_destroy(mode_blob);
943+ if (mode_blob != NULL )
944+ drm_blob_destroy (mode_blob );
949945
950946 return ok ;
951947}
0 commit comments