diff options
author | Karel Zak | 2015-08-04 13:21:42 +0200 |
---|---|---|
committer | Karel Zak | 2015-08-04 13:21:42 +0200 |
commit | cba392b661d3fcf92d50d0df7c8783e18bb992da (patch) | |
tree | cad7faaf330e273e359fe0a1800642d8eeadc396 /libmount/src/monitor.c | |
parent | libfdisk: cleanup assert() usage (diff) | |
download | kernel-qcow2-util-linux-cba392b661d3fcf92d50d0df7c8783e18bb992da.tar.gz kernel-qcow2-util-linux-cba392b661d3fcf92d50d0df7c8783e18bb992da.tar.xz kernel-qcow2-util-linux-cba392b661d3fcf92d50d0df7c8783e18bb992da.zip |
libmount: cleanup assert() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/monitor.c')
-rw-r--r-- | libmount/src/monitor.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libmount/src/monitor.c b/libmount/src/monitor.c index c33e7d3c6..18142da5c 100644 --- a/libmount/src/monitor.c +++ b/libmount/src/monitor.c @@ -168,9 +168,6 @@ static int monitor_next_entry(struct libmnt_monitor *mn, assert(itr); assert(me); - if (!mn || !itr || !me) - return -EINVAL; - *me = NULL; if (!itr->head) @@ -277,9 +274,6 @@ static int userspace_monitor_get_fd(struct libmnt_monitor *mn, { int rc; - assert(mn); - assert(me); - if (!me || me->enable == 0) /* not-initialized or disabled */ return -EINVAL; if (me->fd >= 0) @@ -457,9 +451,6 @@ static int kernel_monitor_get_fd(struct libmnt_monitor *mn, { int rc; - assert(mn); - assert(me); - if (!me || me->enable == 0) /* not-initialized or disabled */ return -EINVAL; if (me->fd >= 0) |