]> sourceware.org Git - lvm2.git/commitdiff
cleanup: use return_NULL
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 17 Aug 2012 10:04:52 +0000 (12:04 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 23 Aug 2012 12:37:38 +0000 (14:37 +0200)
Function returns pointer, so use NULL.

lib/cache/lvmetad.c

index bb949b5e349cd0d9c7d613ff6751ff57cd43145d..db092acc54d11a4d9173d836bdfa3616672168a2 100644 (file)
@@ -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)
This page took 0.039778 seconds and 5 git commands to generate.