summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-08-17 12:04:52 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2012-08-23 14:37:38 +0200
commit14d2b5a13ff6637f2ff1e8bd40dc8ca67e53e51b (patch)
treefb346a5a7189f5d395ebe266253fbe907c319644
parentc8ad1f3e3a280b8cf3ca219dd6a6f3313b8be8d8 (diff)
downloadlvm2-14d2b5a13ff6637f2ff1e8bd40dc8ca67e53e51b.zip
lvm2-14d2b5a13ff6637f2ff1e8bd40dc8ca67e53e51b.tar.gz
lvm2-14d2b5a13ff6637f2ff1e8bd40dc8ca67e53e51b.tar.xz
cleanup: use return_NULL
Function returns pointer, so use NULL.
-rw-r--r--lib/cache/lvmetad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c
index bb949b5..db092ac 100644
--- a/lib/cache/lvmetad.c
+++ b/lib/cache/lvmetad.c
@@ -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)