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

cleanup: stack tracing

This commit is contained in:
Zdenek Kabelac 2017-12-04 13:31:40 +01:00
parent e3366787b6
commit 925fec6ecb
2 changed files with 6 additions and 10 deletions

View File

@ -2033,7 +2033,7 @@ int dm_mknodes(const char *name)
int r = 0; int r = 0;
if (!(dmt = dm_task_create(DM_DEVICE_MKNODES))) if (!(dmt = dm_task_create(DM_DEVICE_MKNODES)))
return 0; return_0;
if (name && !dm_task_set_name(dmt, name)) if (name && !dm_task_set_name(dmt, name))
goto out; goto out;
@ -2054,7 +2054,7 @@ int dm_driver_version(char *version, size_t size)
int r = 0; int r = 0;
if (!(dmt = dm_task_create(DM_DEVICE_VERSION))) if (!(dmt = dm_task_create(DM_DEVICE_VERSION)))
return 0; return_0;
if (!dm_task_run(dmt)) if (!dm_task_run(dmt))
log_error("Failed to get driver version"); log_error("Failed to get driver version");

View File

@ -813,10 +813,8 @@ static int _deps(struct dm_task **dmt, struct dm_pool *mem, uint32_t major, uint
return 1; return 1;
} }
if (!(*dmt = dm_task_create(DM_DEVICE_DEPS))) { if (!(*dmt = dm_task_create(DM_DEVICE_DEPS)))
log_error("deps dm_task creation failed"); return_0;
return 0;
}
if (!dm_task_set_major(*dmt, major) || !dm_task_set_minor(*dmt, minor)) { if (!dm_task_set_major(*dmt, major) || !dm_task_set_minor(*dmt, minor)) {
log_error("_deps: failed to set major:minor for (" FMTu32 ":" FMTu32 ").", log_error("_deps: failed to set major:minor for (" FMTu32 ":" FMTu32 ").",
@ -877,10 +875,8 @@ static int _info_by_dev(uint32_t major, uint32_t minor, int with_open_count,
struct dm_task *dmt; struct dm_task *dmt;
int r = 0; int r = 0;
if (!(dmt = dm_task_create(DM_DEVICE_INFO))) { if (!(dmt = dm_task_create(DM_DEVICE_INFO)))
log_error("_info_by_dev: dm_task creation failed"); return_0;
return 0;
}
if (!dm_task_set_major(dmt, major) || !dm_task_set_minor(dmt, minor)) { if (!dm_task_set_major(dmt, major) || !dm_task_set_minor(dmt, minor)) {
log_error("_info_by_dev: Failed to set device number."); log_error("_info_by_dev: Failed to set device number.");