From: Lennart Poettering Date: Fri, 20 Dec 2019 15:58:27 +0000 (+0100) Subject: umount: remove unneeded variable X-Git-Tag: v245-rc1~221^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=610f9a42c4a8c34d9b3a2b6c6289e8c45b57283f;p=thirdparty%2Fsystemd.git umount: remove unneeded variable --- diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c index df339a994bf..0b8044dacbc 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 */