diff options
author | Denys Vlasenko | 2022-12-13 16:00:00 +0100 |
---|---|---|
committer | Denys Vlasenko | 2022-12-13 16:00:00 +0100 |
commit | 7710250e4a610ae6a4d8f6feb5500f16f82d19f4 (patch) | |
tree | 5422fdae6a98208ed96f9ab7b41fa5e0e125a077 | |
parent | a55bd1c4847dda99cf9e65519ed67f3bcc9786d8 (diff) | |
download | busybox-7710250e4a610ae6a4d8f6feb5500f16f82d19f4.zip busybox-7710250e4a610ae6a4d8f6feb5500f16f82d19f4.tar.gz |
libbb: shrink del_loop()
function old new delta
del_loop 52 49 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c index ffc8acd..95c4a34 100644 --- a/libbb/loop.c +++ b/libbb/loop.c @@ -71,7 +71,7 @@ int FAST_FUNC del_loop(const char *device) fd = open(device, O_RDONLY); if (fd < 0) - return 1; + return fd; /* -1 */ rc = ioctl(fd, LOOP_CLR_FD, 0); close(fd); |