From 9bf8600774689d34cfa5172c6eaba2093e095e23 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 5 Sep 2022 02:57:49 +0900 Subject: [PATCH] loop-util: drop unnecessary initializations --- src/shared/loop-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/loop-util.c b/src/shared/loop-util.c index df4cf1f0a1..3cc72b65a0 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);