color: remove unnecessary cm_image_desc->cprof checks

Since "color: refactor cm_image_desc_create()" if cm_image_desc exists
then the cprof exists as well.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2026-04-17 13:57:59 +03:00
parent e61c499685
commit ae62283724

View file

@ -384,13 +384,6 @@ image_description_get_information(struct wl_client *client,
return;
}
if (!cm_image_desc->cprof) {
wl_resource_post_error(cm_image_desc_res,
WP_IMAGE_DESCRIPTION_V1_ERROR_NOT_READY,
"image description not ready yet");
return;
}
if (!cm_image_desc->supports_get_info) {
wl_resource_post_error(cm_image_desc_res,
WP_IMAGE_DESCRIPTION_V1_ERROR_NO_INFORMATION,
@ -712,14 +705,6 @@ cm_surface_set_image_description(struct wl_client *client,
return;
}
/* Invalid image description for this request, as it isn't ready yet. */
if (!cm_image_desc->cprof) {
wl_resource_post_error(cm_surface_res,
WP_COLOR_MANAGEMENT_SURFACE_V1_ERROR_IMAGE_DESCRIPTION,
"the image description is not ready");
return;
}
cm = cm_image_desc->cm;
render_intent = weston_render_intent_info_from_protocol(surface->compositor,