]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkzone: remove unnecessary initializations
authorKarel Zak <kzak@redhat.com>
Fri, 5 Jun 2020 07:18:08 +0000 (09:18 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 5 Jun 2020 07:18:08 +0000 (09:18 +0200)
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 <kzak@redhat.com>
sys-utils/blkzone.c

index c9834483195b2b7d93cbe1294fb081fbfe750a9c..11e90fb0ef349153139d93a211e6aaedf91540b4 100644 (file)
@@ -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[] = {