]> sourceware.org Git - lvm2.git/commitdiff
cleanup: use arg_is_set
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 31 Oct 2014 10:41:03 +0000 (11:41 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 3 Nov 2014 13:19:33 +0000 (14:19 +0100)
tools/toollib.c

index 0472597c3547d7cc14ff3541a419740e0c83e738..5906ccb7a2ebdae4957b3ec18fd9f67f7fbd2f56 100644 (file)
@@ -978,13 +978,12 @@ int get_pool_params(struct cmd_context *cmd,
        *passed_args = 0;
 
        if (segtype_is_thin_pool(segtype) || segtype_is_thin(segtype)) {
-               if (arg_count(cmd, zero_ARG)) {
+               if (arg_is_set(cmd, zero_ARG)) {
                        *passed_args |= PASS_ARG_ZERO;
                        *zero = arg_int_value(cmd, zero_ARG, 1);
                        log_very_verbose("Setting pool zeroing: %u", *zero);
                }
-
-               if (arg_count(cmd, discards_ARG)) {
+               if (arg_is_set(cmd, discards_ARG)) {
                        *passed_args |= PASS_ARG_DISCARDS;
                        *discards = (thin_discards_t) arg_uint_value(cmd, discards_ARG, 0);
                        log_very_verbose("Setting pool discards: %s",
This page took 0.038881 seconds and 5 git commands to generate.