diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c index 2e0ee518b..1ba844fc8 100644 --- a/lib/cache/lvmetad.c +++ b/lib/cache/lvmetad.c @@ -1281,7 +1281,7 @@ int lvmetad_vg_update_finish(struct volume_group *vg) if (pvl->pv->dev && !lvmetad_pv_found(vg->cmd, &pvl->pv->id, pvl->pv->dev, vgu->fid ? vgu->fid->fmt : pvl->pv->fmt, pvl->pv->label_sector, NULL, NULL, NULL)) - return 0; + return_0; } vg->lvmetad_update_pending = 0; diff --git a/libdm/ioctl/libdm-iface.c b/libdm/ioctl/libdm-iface.c index 63d305b33..100d0cc4f 100644 --- a/libdm/ioctl/libdm-iface.c +++ b/libdm/ioctl/libdm-iface.c @@ -273,7 +273,7 @@ static int _create_control(const char *control, uint32_t major, uint32_t minor) */ ret = _control_exists(control, major, minor); if (ret == -1) - return 0; /* Failed to unlink existing incorrect node */ + return_0; /* Failed to unlink existing incorrect node */ if (ret) return 1; /* Already exists and correct */ @@ -284,7 +284,7 @@ static int _create_control(const char *control, uint32_t major, uint32_t minor) (void) dm_prepare_selinux_context(NULL, 0); if (!ret) - return 0; + return_0; log_verbose("Creating device %s (%u, %u)", control, major, minor);