libbb: shrink del_loop()

function                                             old     new   delta
del_loop                                              52      49      -3

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2022-12-13 16:00:00 +01:00
parent a55bd1c484
commit 7710250e4a

View File

@ -71,7 +71,7 @@ int FAST_FUNC del_loop(const char *device)
fd = open(device, O_RDONLY); fd = open(device, O_RDONLY);
if (fd < 0) if (fd < 0)
return 1; return fd; /* -1 */
rc = ioctl(fd, LOOP_CLR_FD, 0); rc = ioctl(fd, LOOP_CLR_FD, 0);
close(fd); close(fd);