1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: dmeventd reorder _fill_device_data

Just simplify the function.
This commit is contained in:
Zdenek Kabelac 2014-04-18 11:37:17 +02:00
parent 6b701c3a48
commit 4fb588c34e

View File

@ -404,6 +404,7 @@ static int _fill_device_data(struct thread_status *ts)
{
struct dm_task *dmt;
struct dm_info dmi;
int ret = 0;
if (!ts->device.uuid)
return 0;
@ -426,16 +427,11 @@ static int _fill_device_data(struct thread_status *ts)
ts->device.major = dmi.major;
ts->device.minor = dmi.minor;
ret = 1;
fail:
dm_task_destroy(dmt);
return 1;
fail:
dm_task_destroy(dmt);
dm_free(ts->device.name);
ts->device.name = NULL;
return 0;
return ret;
}
/*