]> sourceware.org Git - lvm2.git/commitdiff
cleanup: simplier struct init
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 19 Aug 2014 12:30:52 +0000 (14:30 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 19 Aug 2014 12:33:07 +0000 (14:33 +0200)
Use simplier struct initilizer.

tools/dmsetup.c

index 6cbd21c33079527ddfce8ec1cfc37018621c2195..f1808c0affad1f808e653f31fb0a1e18e2b9a502 100644 (file)
@@ -896,13 +896,9 @@ static int _setgeometry(CMD_ARGS)
 
 static int _splitname(CMD_ARGS)
 {
-       struct dmsetup_report_obj obj;
+       struct dmsetup_report_obj obj = { NULL };
        int r;
 
-       obj.task = NULL;
-       obj.info = NULL;
-       obj.deps_task = NULL;
-       obj.tree_node = NULL;
        if (!(obj.split_name = _get_split_name((argc == 3) ? argv[2] : "LVM",
                                               argv[1], '\0')))
                 return_0;
This page took 0.049142 seconds and 5 git commands to generate.