aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c
index ffc8acd39..95c4a34e2 100644
--- a/libbb/loop.c
+++ b/libbb/loop.c
@@ -71,7 +71,7 @@ int FAST_FUNC del_loop(const char *device)
71 71
72 fd = open(device, O_RDONLY); 72 fd = open(device, O_RDONLY);
73 if (fd < 0) 73 if (fd < 0)
74 return 1; 74 return fd; /* -1 */
75 rc = ioctl(fd, LOOP_CLR_FD, 0); 75 rc = ioctl(fd, LOOP_CLR_FD, 0);
76 close(fd); 76 close(fd);
77 77