[CRIU] [PATCH 05/24] compel/src/main.c: rm useless init

Kir Kolyshkin kir at openvz.org
Sat Dec 17 03:21:58 PST 2016


1 Since all the fields are now initialized to zeroes,
  we can just say ={};

2 Since this is static, it is initialized to zeroes anyway,
  but from my POV being explicit about it is better.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 compel/src/main.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/compel/src/main.c b/compel/src/main.c
index b4afff9..4202b12 100644
--- a/compel/src/main.c
+++ b/compel/src/main.c
@@ -51,11 +51,7 @@ static const compel_cflags_t compel_cflags[] = {
 	},
 };
 
-piegen_opt_t opts = {
-	.input_filename		= NULL,
-	.output_filename	= NULL,
-	.fout			= NULL,
-};
+piegen_opt_t opts = {};
 
 static int piegen(void)
 {
-- 
2.7.4



More information about the CRIU mailing list