main - cleanup: simply code
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b5f906e984abea169209302b78bfa935869d6ea4 Commit: b5f906e984abea169209302b78bfa935869d6ea4 Parent: 5ecd65e6f2f5264b0ebe1177a714bc8d29e882fb Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat Feb 20 22:11:30 2021 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Feb 23 14:56:48 2021 +0100
cleanup: simply code
--- tools/lvresize.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
tools/lvresize.c +9 -9
@@ -146,14 +146,6 @@ static int _lvresize_params(struct cmd_context *cmd, int argc, char **argv, lp->argc = --argc; lp->argv = ++argv; - lp->alloc = (alloc_policy_t )arg_uint_value (cmd, alloc_ARG,0 ); - lp->yes =arg_is_set (cmd, yes_ARG); - lp->force =arg_is_set (cmd, force_ARG); - lp->nofsck =arg_is_set (cmd, nofsck_ARG); - lp->nosync =arg_is_set (cmd, nosync_ARG); - lp->resizefs =arg_is_set (cmd, resizefs_ARG); - lp->lockopt =arg_str_value (cmd, lockopt_ARG,NULL ); -return 1 ; }
@@ -186,7 +178,15 @@ out:int lvresize (struct cmd_context *cmd,int argc,char **argv) {struct processing_handle *handle; -struct lvresize_params lp = {0 }; +struct lvresize_params lp = { + .alloc = (alloc_policy_t )arg_uint_value (cmd, alloc_ARG,0 ), + .yes =arg_is_set (cmd, yes_ARG), + .force =arg_is_set (cmd, force_ARG), + .nofsck =arg_is_set (cmd, nofsck_ARG), + .nosync =arg_is_set (cmd, nosync_ARG), + .resizefs =arg_is_set (cmd, resizefs_ARG), + .lockopt =arg_str_value (cmd, lockopt_ARG,NULL ), + };int ret;if (!_lvresize_params (cmd, argc, argv, &lp)) {