aboutsummaryrefslogtreecommitdiffstats
path: root/lib/loopdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/loopdev.c')
-rw-r--r--lib/loopdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/loopdev.c b/lib/loopdev.c
index 389cb100e..efc997f87 100644
--- a/lib/loopdev.c
+++ b/lib/loopdev.c
@@ -1617,7 +1617,7 @@ static int loopcxt_get_device_nr(struct loopdev_cxt *lc, int *nr)
errno = 0;
if (!lc || !nr)
- goto done;
+ return rc;
dev = loopcxt_get_device(lc);
if (!dev)