[igt-dev] [PATCH i-g-t 2/4] tests: Remove pointless struct member initialization

Ville Syrjala ville.syrjala at linux.intel.com
Tue Feb 23 21:09:48 UTC 2021


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Initializing the seed and user_seed is pointless; .user_seed already
defaults to false, and .seed will get overwritten anyway.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/kms_concurrent.c     | 2 --
 tests/kms_plane_multiple.c | 2 --
 2 files changed, 4 deletions(-)

diff --git a/tests/kms_concurrent.c b/tests/kms_concurrent.c
index bd7416fda760..1838a8ca5b47 100644
--- a/tests/kms_concurrent.c
+++ b/tests/kms_concurrent.c
@@ -46,8 +46,6 @@ struct {
 	bool run;
 } opt = {
 	.iterations = 1,
-	.user_seed = false,
-	.seed = 1,
 	.run = true,
 };
 
diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c
index 8310981cf9fa..4202117eab81 100644
--- a/tests/kms_plane_multiple.c
+++ b/tests/kms_plane_multiple.c
@@ -58,8 +58,6 @@ struct {
 	int seed;
 } opt = {
 	.iterations = 1,
-	.user_seed = false,
-	.seed = 1,
 };
 
 /*
-- 
2.26.2



More information about the igt-dev mailing list