mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add missing return for NULL passed buffer
Function pull_stateo() checks for NULL 'buf' - but return for this error path was missing. cmirror code never calls this function with NULL 'buf', so this fix has no effect on current code base, but makes clang happier.
This commit is contained in:
parent
d0604a856d
commit
44110cd33e
@ -1809,8 +1809,10 @@ int pull_state(const char *uuid, uint64_t luid,
|
||||
int bitset_size;
|
||||
struct log_c *lc;
|
||||
|
||||
if (!buf)
|
||||
if (!buf) {
|
||||
LOG_ERROR("pull_state: buf == NULL");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
lc = get_log(uuid, luid);
|
||||
if (!lc) {
|
||||
|
Loading…
Reference in New Issue
Block a user