]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
umount: remove unneeded variable
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Dec 2019 15:58:27 +0000 (16:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Dec 2019 17:15:56 +0000 (18:15 +0100)
src/shutdown/umount.c

index df339a994bfe72930a483cb7640995b4bd7b3a08..0b8044dacbc280d4c134a4ae4d2236f692c0405c 100644 (file)
@@ -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 */