1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

cleanup: simplier struct init

Use simplier struct initilizer.
This commit is contained in:
Zdenek Kabelac 2014-08-19 14:30:52 +02:00
parent 24df01f735
commit c5f2c541f6

View 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;