]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: drop unnecessary parentheses 21985/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Jan 2022 19:11:26 +0000 (04:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Jan 2022 19:27:11 +0000 (04:27 +0900)
src/coredump/coredump.c

index 9e0dafb1ce9ccf5d7682d09df6902184d16b9f5e..f7f2f194b4df7d75f3c7da5d6351a27867a5e160 100644 (file)
@@ -793,10 +793,9 @@ static int submit_coredump(
         r = maybe_remove_external_coredump(filename, coredump_node_fd >= 0 ? coredump_compressed_size : coredump_size);
         if (r < 0)
                 return r;
-        if (r == 0) {
+        if (r == 0)
                 (void) iovw_put_string_field(iovw, "COREDUMP_FILENAME=", filename);
-
-        } else if (arg_storage == COREDUMP_STORAGE_EXTERNAL)
+        else if (arg_storage == COREDUMP_STORAGE_EXTERNAL)
                 log_info("The core will not be stored: size %"PRIu64" is greater than %"PRIu64" (the configured maximum)",
                          coredump_node_fd >= 0 ? coredump_compressed_size : coredump_size, arg_external_size_max);