summaryrefslogtreecommitdiffstats
path: root/src/coredump/coredump.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-01-03 20:11:26 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-01-03 20:27:11 +0100
commit633c3e8aa2a33cc72a1a5b5acc406910e6401c9a (patch)
tree481ab5be6dd2912c2ff034ebdfaf7c717703ff86 /src/coredump/coredump.c
parentelf-util: add missing assertion (diff)
downloadsystemd-633c3e8aa2a33cc72a1a5b5acc406910e6401c9a.tar.xz
systemd-633c3e8aa2a33cc72a1a5b5acc406910e6401c9a.zip
coredump: drop unnecessary parentheses
Diffstat (limited to 'src/coredump/coredump.c')
-rw-r--r--src/coredump/coredump.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 9e0dafb1ce..f7f2f194b4 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -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);