From: Karel Zak Date: Wed, 15 Jan 2020 13:08:06 +0000 (+0100) Subject: libmount: (monitor) remove dead code [coverity scan] X-Git-Tag: v2.35~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eae8661e686ebcb06ec60c1a6bb1616aaef88257;p=thirdparty%2Futil-linux.git libmount: (monitor) remove dead code [coverity scan] Signed-off-by: Karel Zak --- diff --git a/libmount/src/monitor.c b/libmount/src/monitor.c index 730c8bdea4..1f6eb1a572 100644 --- a/libmount/src/monitor.c +++ b/libmount/src/monitor.c @@ -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; } /**