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:
parent
a55bd1c484
commit
7710250e4a
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user