]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
devlink: whitespace cleanup
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 29 Aug 2016 18:17:38 +0000 (11:17 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 29 Aug 2016 18:17:38 +0000 (11:17 -0700)
Break long lines

devlink/devlink.c

index d69fc6b1966415aa5a8bf88e30f3c94a7b70cac9..e91dc500732fc0a98866af76dbae6b871b3ee1f1 100644 (file)
@@ -669,7 +669,8 @@ static int threshold_type_get(const char *typestr,
        return 0;
 }
 
-static int eswitch_mode_get(const char *typestr, enum devlink_eswitch_mode *p_mode)
+static int eswitch_mode_get(const char *typestr,
+                           enum devlink_eswitch_mode *p_mode)
 {
        if (strcmp(typestr, ESWITCH_MODE_LEGACY) == 0) {
                *p_mode = DEVLINK_ESWITCH_MODE_LEGACY;
@@ -794,6 +795,7 @@ static int dl_argv_parse(struct dl *dl, uint32_t o_required,
                } else if (dl_argv_match(dl, "mode") &&
                           (o_all & DL_OPT_ESWITCH_MODE)) {
                        const char *typestr;
+
                        dl_arg_inc(dl);
                        err = dl_argv_str(dl, &typestr);
                        if (err)
@@ -856,7 +858,8 @@ static int dl_argv_parse(struct dl *dl, uint32_t o_required,
                return -EINVAL;
        }
 
-       if ((o_required & DL_OPT_ESWITCH_MODE) && !(o_found & DL_OPT_ESWITCH_MODE)) {
+       if ((o_required & DL_OPT_ESWITCH_MODE) &&
+           !(o_found & DL_OPT_ESWITCH_MODE)) {
                pr_err("E-Switch mode option expected.\n");
                return -EINVAL;
        }