mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
loop-util: minor simplification
This commit is contained in:
parent
cbf13087cc
commit
26c1be0fdc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user