From: Suraj Kandpal <suraj.kandpal@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: mohammed.thasleem@intel.com, karthik.b.s@intel.com,
jeevan.b@intel.com, Suraj Kandpal <suraj.kandpal@intel.com>
Subject: [PATCH i-g-t 4/4] tests/kms_content_protection: Make mst_cp_enable_with_retry() void
Date: Thu, 12 Sep 2024 19:04:21 +0530 [thread overview]
Message-ID: <20240912133421.718496-5-suraj.kandpal@intel.com> (raw)
In-Reply-To: <20240912133421.718496-1-suraj.kandpal@intel.com>
Change the return type for test_mst_cp_enable_with_retry to void
since it really does not need to return anything back now that
the color change and enablement verification happen inside the
function itself.
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
---
tests/kms_content_protection.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index f17d9f2e8..59dca54df 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -662,7 +662,7 @@ static void test_cp_lic_on_mst(igt_output_t *mst_outputs[], int valid_outputs, i
}
}
-static bool
+static void
test_mst_cp_enable_with_retry(igt_output_t *hdcp_mst_output[], int valid_outputs,
int retries, int content_type)
{
@@ -704,8 +704,6 @@ test_mst_cp_enable_with_retry(igt_output_t *hdcp_mst_output[], int valid_outputs
} while (retries && !ret);
igt_assert_f(ret, "Content Protection not enabled on MST outputs\n");
-
- return ret;
}
static void
@@ -764,7 +762,7 @@ test_content_protection_mst(int content_type)
igt_display_commit2(display, COMMIT_ATOMIC);
- ret = test_mst_cp_enable_with_retry(hdcp_mst_output, valid_outputs, 2, content_type);
+ test_mst_cp_enable_with_retry(hdcp_mst_output, valid_outputs, 2, content_type);
if (data.cp_tests & CP_LIC)
test_cp_lic_on_mst(hdcp_mst_output, valid_outputs, 0);
--
2.43.2
next prev parent reply other threads:[~2024-09-12 13:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-12 13:34 [PATCH i-g-t 0/4] HDCP MST LIC fixes Suraj Kandpal
2024-09-12 13:34 ` [PATCH i-g-t 1/4] test/kms_content_protection: Fix variable declaration Suraj Kandpal
2024-09-12 13:34 ` [PATCH i-g-t 2/4] tests/kms_content_protection: Print correct output Suraj Kandpal
2024-09-12 13:34 ` [PATCH i-g-t 3/4] test/kms_content_protection: Move color change code Suraj Kandpal
2024-09-12 13:59 ` Thasleem, Mohammed
2024-09-12 13:34 ` Suraj Kandpal [this message]
2024-09-12 13:43 ` [PATCH i-g-t 4/4] tests/kms_content_protection: Make mst_cp_enable_with_retry() void B, Jeevan
2024-09-12 14:04 ` Thasleem, Mohammed
2024-09-12 14:12 ` ✓ CI.xeBAT: success for HDCP MST LIC fixes (rev3) Patchwork
2024-09-12 14:14 ` ✓ Fi.CI.BAT: " Patchwork
2024-09-12 22:59 ` ✗ CI.xeFULL: failure " Patchwork
2024-09-13 2:39 ` ✗ Fi.CI.IGT: " Patchwork
2024-09-17 4:04 ` Kandpal, Suraj
2024-09-13 17:59 ` ✓ Fi.CI.IGT: success " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240912133421.718496-5-suraj.kandpal@intel.com \
--to=suraj.kandpal@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jeevan.b@intel.com \
--cc=karthik.b.s@intel.com \
--cc=mohammed.thasleem@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox