From 1e03719361b112ee259db3ed40f8012def6d7f2d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 21 Aug 2024 22:02:51 +0200 Subject: [PATCH] backend/drm: drop match_connectors_with_crtcs() return value It's unused. --- backend/drm/util.c | 3 +-- include/backend/drm/util.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/drm/util.c b/backend/drm/util.c index e4cd55d5c..abbc9c233 100644 --- a/backend/drm/util.c +++ b/backend/drm/util.c @@ -215,7 +215,7 @@ static bool match_connectors_with_crtcs_(struct match_state *st, size_t skips, return has_best; } -size_t match_connectors_with_crtcs(size_t num_conns, +void match_connectors_with_crtcs(size_t num_conns, const uint32_t conns[static restrict num_conns], size_t num_crtcs, const uint32_t prev_crtcs[static restrict num_crtcs], uint32_t new_crtcs[static restrict num_crtcs]) { @@ -237,7 +237,6 @@ size_t match_connectors_with_crtcs(size_t num_conns, }; match_connectors_with_crtcs_(&st, 0, 0, 0, 0); - return st.score; } void generate_cvt_mode(drmModeModeInfo *mode, int hdisplay, int vdisplay, diff --git a/include/backend/drm/util.h b/include/backend/drm/util.h index c4d9467b5..85a8f4722 100644 --- a/include/backend/drm/util.h +++ b/include/backend/drm/util.h @@ -35,9 +35,8 @@ enum { * or UNMATCHED. * * new_crtcs is populated with the new connector indices. - * Returns the total number of matched solutions. */ -size_t match_connectors_with_crtcs(size_t num_conns, +void match_connectors_with_crtcs(size_t num_conns, const uint32_t conns[static restrict num_conns], size_t num_crtcs, const uint32_t prev_crtcs[static restrict num_crtcs], uint32_t new_crtcs[static restrict num_crtcs]);