libmount: (monitor) remove dead code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2020-01-15 14:08:06 +01:00
parent 810dfb7de6
commit eae8661e68
1 changed files with 7 additions and 10 deletions

View File

@ -794,18 +794,15 @@ int mnt_monitor_next_change(struct libmnt_monitor *mn,
me = NULL;
}
if (me) {
me->changed = 0;
me->changed = 0;
if (filename)
*filename = me->path;
if (type)
*type = me->type;
if (filename)
*filename = me->path;
if (type)
*type = me->type;
DBG(MONITOR, ul_debugobj(mn, " *** success [changed: %s]", me->path));
} else
return -EINVAL;
return 0; /* success */
DBG(MONITOR, ul_debugobj(mn, " *** success [changed: %s]", me->path));
return 0;
}
/**