mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-09 01:18:39 +03:00
cov: Clarify the control flow
Return need a clean up but it is not bailing out due to an error.
Fix: 402b41f58d
This commit is contained in:
parent
3fe2610cff
commit
c24fa7b7b7
@ -2013,7 +2013,7 @@ static int _sysfs_get_kernel_name(uint32_t major, uint32_t minor, char *buf, siz
|
||||
else {
|
||||
log_sys_debug("readlink", sysfs_path);
|
||||
r = _sysfs_find_kernel_name(major, minor, buf, buf_size);
|
||||
goto bad;
|
||||
goto out;
|
||||
}
|
||||
goto bad;
|
||||
}
|
||||
@ -2034,6 +2034,7 @@ static int _sysfs_get_kernel_name(uint32_t major, uint32_t minor, char *buf, siz
|
||||
strcpy(buf, name);
|
||||
r = 1;
|
||||
bad:
|
||||
out:
|
||||
dm_free(temp_buf);
|
||||
dm_free(sysfs_path);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user