From c5f2c541f6b0ce5d9ef8a1eda66bd021c044e6d2 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 19 Aug 2014 14:30:52 +0200 Subject: [PATCH] cleanup: simplier struct init Use simplier struct initilizer. --- tools/dmsetup.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/dmsetup.c b/tools/dmsetup.c index 6cbd21c33..f1808c0af 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -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;