mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cleanup: use return_NULL
Function returns pointer, so use NULL.
This commit is contained in:
parent
c8ad1f3e3a
commit
14d2b5a13f
2
lib/cache/lvmetad.c
vendored
2
lib/cache/lvmetad.c
vendored
@ -189,7 +189,7 @@ struct volume_group *lvmetad_vg_lookup(struct cmd_context *cmd, const char *vgna
|
||||
|
||||
if (vgid) {
|
||||
if (!id_write_format((const struct id*)vgid, uuid, sizeof(uuid)))
|
||||
return_0;
|
||||
return_NULL;
|
||||
reply = daemon_send_simple(_lvmetad, "vg_lookup", "uuid = %s", uuid, NULL);
|
||||
} else {
|
||||
if (!vgname)
|
||||
|
Loading…
x
Reference in New Issue
Block a user