master - cleanup: use return_NULL
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=14d2b5a13ff6637f2ff1e8bd40dc8ca67e53e51b Commit: 14d2b5a13ff6637f2ff1e8bd40dc8ca67e53e51b Parent: c8ad1f3e3a280b8cf3ca219dd6a6f3313b8be8d8 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Aug 17 12:04:52 2012 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Aug 23 14:37:38 2012 +0200
cleanup: use return_NULL
Function returns pointer, so use NULL.
--- lib/cache/lvmetad.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/cache/lvmetad.c +1 -1
@@ -189,7 +189,7 @@ struct volume_group *lvmetad_vg_lookup(struct cmd_context *cmd, const char *vgnaif (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)