m_gact: whitespace cleanup
Fix whitespace errors reported by checkpatch Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
ed4856919f
commit
5c235ac27e
11
tc/m_gact.c
11
tc/m_gact.c
|
|
@ -115,11 +115,15 @@ 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--;
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue