]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
loop-util: drop unnecessary initializations
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 4 Sep 2022 17:57:49 +0000 (02:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 4 Sep 2022 19:31:29 +0000 (04:31 +0900)
src/shared/loop-util.c

index df4cf1f0a19d2d8ad3904142d2660b7613d32294..3cc72b65a06001442d15e91e1cd47ea627b51cdc 100644 (file)
@@ -361,10 +361,10 @@ static int loop_device_make_internal(
         _cleanup_free_ char *node = NULL;
         bool try_loop_configure = true;
         struct loop_config config;
-        LoopDevice *d = NULL;
+        LoopDevice *d;
         uint64_t seqnum = UINT64_MAX;
         usec_t timestamp = USEC_INFINITY;
-        int nr = -1, r, f_flags;
+        int nr, r, f_flags;
         struct stat st;
 
         assert(fd >= 0);