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

Use already acquired variable...

This commit is contained in:
Peter Rajnoha 2012-03-05 14:45:00 +00:00
parent 3cf63e35bf
commit 33213a3e8e

View File

@ -1562,8 +1562,7 @@ static int _do_dm_ioctl_unmangle_name(char *name)
if (!check_multiple_mangled_name_allowed(mode, name))
return_0;
if ((r = unmangle_name(name, DM_NAME_LEN, buf, sizeof(buf),
dm_get_name_mangling_mode())) < 0) {
if ((r = unmangle_name(name, DM_NAME_LEN, buf, sizeof(buf), mode)) < 0) {
log_debug("_do_dm_ioctl_unmangle_name: failed to "
"unmangle \"%s\"", name);
return 0;