From 43d2ce3b443d06abef21a6a612560f57c5989ea3 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 5 Jun 2020 09:18:08 +0200 Subject: [PATCH] blkzone: remove unnecessary initializations C compiler is smart enough to follow C standards C11: 6.7.8 Initialization All subobjects that are not initialized explicitly shall be initialized implicitly the same as objects that have static storage duration. Signed-off-by: Karel Zak --- sys-utils/blkzone.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys-utils/blkzone.c b/sys-utils/blkzone.c index c983448319..11e90fb0ef 100644 --- a/sys-utils/blkzone.c +++ b/sys-utils/blkzone.c @@ -379,10 +379,7 @@ int main(int argc, char **argv) { int c; struct blkzone_control ctl = { - .devname = NULL, - .offset = 0, - .count = 0, - .length = 0 + .devname = NULL }; static const struct option longopts[] = { -- 2.47.2