From: Yu Watanabe Date: Sun, 4 Sep 2022 17:57:49 +0000 (+0900) Subject: loop-util: drop unnecessary initializations X-Git-Tag: v252-rc1~258^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf8600774689d34cfa5172c6eaba2093e095e23;p=thirdparty%2Fsystemd.git loop-util: drop unnecessary initializations --- diff --git a/src/shared/loop-util.c b/src/shared/loop-util.c index df4cf1f0a19..3cc72b65a06 100644 --- a/src/shared/loop-util.c +++ b/src/shared/loop-util.c @@ -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);