diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-12-20 16:58:27 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-12-20 18:15:56 +0100 |
commit | 610f9a42c4a8c34d9b3a2b6c6289e8c45b57283f (patch) | |
tree | 0cc77fcdf95dfcfee8672175ac039702cc7cd5a6 /src | |
parent | umount: line break comments again (diff) | |
download | systemd-610f9a42c4a8c34d9b3a2b6c6289e8c45b57283f.tar.xz systemd-610f9a42c4a8c34d9b3a2b6c6289e8c45b57283f.zip |
umount: remove unneeded variable
Diffstat (limited to 'src')
-rw-r--r-- | src/shutdown/umount.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c index df339a994b..0b8044dacb 100644 --- a/src/shutdown/umount.c +++ b/src/shutdown/umount.c @@ -325,7 +325,6 @@ static int dm_list_get(MountPoint **head) { static int delete_loopback(const char *device) { _cleanup_close_ int fd = -1; - int r; assert(device); @@ -333,8 +332,7 @@ static int delete_loopback(const char *device) { if (fd < 0) return errno == ENOENT ? 0 : -errno; - r = ioctl(fd, LOOP_CLR_FD, 0); - if (r >= 0) + if (ioctl(fd, LOOP_CLR_FD, 0) >= 0) return 1; /* ENXIO: not bound, so no error */ |