]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
m_gact: whitespace cleanup
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 26 Nov 2017 20:38:21 +0000 (12:38 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 26 Nov 2017 20:38:21 +0000 (12:38 -0800)
Fix whitespace errors reported by checkpatch

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/m_gact.c

index 905aa51020afda3809e475090a32b1851073fbcb..e7d91dab78bd51f9a9e7b6bf84b0455a0f53b3ae 100644 (file)
@@ -115,17 +115,21 @@ parse_gact(struct action_util *a, int *argc_p, char ***argv_p,
                                                 &pp.paction, false) == -1)
                                usage();
                        if (get_u16(&pp.pval, *argv, 10)) {
-                               fprintf(stderr, "Illegal probability val 0x%x\n", pp.pval);
+                               fprintf(stderr,
+                                       "Illegal probability val 0x%x\n",
+                                       pp.pval);
                                return -1;
                        }
                        if (pp.pval > 10000) {
-                               fprintf(stderr, "Illegal probability val  0x%x\n", pp.pval);
+                               fprintf(stderr,
+                                       "Illegal probability val  0x%x\n",
+                                       pp.pval);
                                return -1;
                        }
                        argc--;
                        argv++;
                } else if (matches(*argv, "help") == 0) {
-                               usage();
+                       usage();
                }
        }
 #endif
@@ -140,7 +144,7 @@ parse_gact(struct action_util *a, int *argc_p, char ***argv_p,
                        argc--;
                        argv++;
                } else if (matches(*argv, "help") == 0) {
-                               usage();
+                       usage();
                }
        }
 
@@ -148,9 +152,8 @@ parse_gact(struct action_util *a, int *argc_p, char ***argv_p,
        addattr_l(n, MAX_MSG, tca_id, NULL, 0);
        addattr_l(n, MAX_MSG, TCA_GACT_PARMS, &p, sizeof(p));
 #ifdef CONFIG_GACT_PROB
-       if (rd) {
+       if (rd)
                addattr_l(n, MAX_MSG, TCA_GACT_PROB, &pp, sizeof(pp));
-       }
 #endif
        tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;
 
@@ -160,7 +163,7 @@ parse_gact(struct action_util *a, int *argc_p, char ***argv_p,
 }
 
 static int
-print_gact(struct action_util *au, FILE * f, struct rtattr *arg)
+print_gact(struct action_util *au, FILE *f, struct rtattr *arg)
 {
 #ifdef CONFIG_GACT_PROB
        struct tc_gact_p *pp = NULL;