loop-util: minor simplification

This commit is contained in:
Lennart Poettering 2018-12-31 16:56:06 +01:00
parent cbf13087cc
commit 26c1be0fdc
1 changed files with 1 additions and 2 deletions

View File

@ -88,8 +88,7 @@ int loop_device_make(int fd, int open_flags, LoopDevice **ret) {
};
*ret = d;
return (*ret)->fd;
return d->fd;
}
int loop_device_make_by_path(const char *path, int open_flags, LoopDevice **ret) {