summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_loopdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/src/context_loopdev.c')
-rw-r--r--libmount/src/context_loopdev.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libmount/src/context_loopdev.c b/libmount/src/context_loopdev.c
index 68b8dabc9..787114228 100644
--- a/libmount/src/context_loopdev.c
+++ b/libmount/src/context_loopdev.c
@@ -147,9 +147,6 @@ int mnt_context_setup_loopdev(struct libmnt_context *cxt)
assert(cxt->fs);
assert((cxt->flags & MNT_FL_MOUNTFLAGS_MERGED));
- if (!cxt)
- return -EINVAL;
-
backing_file = mnt_fs_get_srcpath(cxt->fs);
if (!backing_file)
return -EINVAL;
@@ -317,9 +314,6 @@ int mnt_context_delete_loopdev(struct libmnt_context *cxt)
assert(cxt);
assert(cxt->fs);
- if (!cxt)
- return -EINVAL;
-
src = mnt_fs_get_srcpath(cxt->fs);
if (!src)
return -EINVAL;
@@ -343,9 +337,6 @@ int mnt_context_clear_loopdev(struct libmnt_context *cxt)
{
assert(cxt);
- if (!cxt)
- return -EINVAL;
-
if (mnt_context_get_status(cxt) == 0 &&
(cxt->flags & MNT_FL_LOOPDEV_READY)) {
/*