mount_setattr.2: Remove some unnecessary intermediate variables

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-08-09 23:17:41 +02:00
parent f606879ab1
commit 91ce7d5f0a
1 changed files with 3 additions and 5 deletions

View File

@ -951,13 +951,11 @@ main(int argc, char *argv[])
}
}
char **new_argv = &argv[optind];
int new_argc = argc \- optind;
if (new_argc < 2)
if ((argc \- optind) < 2)
exit_log("Missing source or target mount point\en");
const char *source = new_argv[0];
const char *target = new_argv[1];
const char *source = argv[optind];
const char *target = argv[optind + 1];
int fd_tree = open_tree(\-EBADF, source,
OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC |