]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fstab-generator: drop unneeded initialization
authorMike Yuan <me@yhndnzj.com>
Mon, 22 Jan 2024 16:33:51 +0000 (00:33 +0800)
committerMike Yuan <me@yhndnzj.com>
Thu, 25 Jan 2024 17:06:40 +0000 (01:06 +0800)
src/fstab-generator/fstab-generator.c

index af17a7d8e24a1f45f6df8e04837acbde5a5e673a..4941e16b68997b4a33158517bfcce55738a9c583 100644 (file)
@@ -1584,7 +1584,7 @@ static int determine_usr(void) {
  * with /sysroot/etc/fstab available, and then we can write additional units based
  * on that file. */
 static int run_generator(void) {
-        int r = 0;
+        int r;
 
         r = proc_cmdline_parse(parse_proc_cmdline_item, NULL, 0);
         if (r < 0)