diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-10 14:01:54 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-10 15:47:26 +0100 |
commit | 33068a0f5ee5269980defedb7aeaa6d2a232af3b (patch) | |
tree | 45d194e9e789923c82cf677655a253c62ef49661 /src/binfmt | |
parent | binfmt: fix exit value (diff) | |
download | systemd-33068a0f5ee5269980defedb7aeaa6d2a232af3b.tar.xz systemd-33068a0f5ee5269980defedb7aeaa6d2a232af3b.zip |
binfmt: unparenthesize a bit
Diffstat (limited to 'src/binfmt')
-rw-r--r-- | src/binfmt/binfmt.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/binfmt/binfmt.c b/src/binfmt/binfmt.c index 0c65957ae4..07a736dcc9 100644 --- a/src/binfmt/binfmt.c +++ b/src/binfmt/binfmt.c @@ -200,15 +200,13 @@ static int run(int argc, char *argv[]) { if (arg_unregister) return disable_binfmt(); - if (argc > optind) { - int i; - - for (i = optind; i < argc; i++) { + if (argc > optind) + for (int i = optind; i < argc; i++) { k = apply_file(argv[i], false); if (k < 0 && r == 0) r = k; } - } else { + else { _cleanup_strv_free_ char **files = NULL; char **f; |