net: fib6: reduce identation in ip6_convert_metrics
Reduce the identation a bit, there's no need to artificically have it increased. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6cf9dfd3bd
commit
1bb14807bc
|
@ -1711,26 +1711,26 @@ static int ip6_convert_metrics(struct mx6_config *mxc,
|
||||||
|
|
||||||
nla_for_each_attr(nla, cfg->fc_mx, cfg->fc_mx_len, remaining) {
|
nla_for_each_attr(nla, cfg->fc_mx, cfg->fc_mx_len, remaining) {
|
||||||
int type = nla_type(nla);
|
int type = nla_type(nla);
|
||||||
|
u32 val;
|
||||||
|
|
||||||
if (type) {
|
if (!type)
|
||||||
u32 val;
|
continue;
|
||||||
|
if (unlikely(type > RTAX_MAX))
|
||||||
|
goto err;
|
||||||
|
|
||||||
if (unlikely(type > RTAX_MAX))
|
if (type == RTAX_CC_ALGO) {
|
||||||
|
char tmp[TCP_CA_NAME_MAX];
|
||||||
|
|
||||||
|
nla_strlcpy(tmp, nla, sizeof(tmp));
|
||||||
|
val = tcp_ca_get_key_by_name(tmp);
|
||||||
|
if (val == TCP_CA_UNSPEC)
|
||||||
goto err;
|
goto err;
|
||||||
if (type == RTAX_CC_ALGO) {
|
} else {
|
||||||
char tmp[TCP_CA_NAME_MAX];
|
val = nla_get_u32(nla);
|
||||||
|
|
||||||
nla_strlcpy(tmp, nla, sizeof(tmp));
|
|
||||||
val = tcp_ca_get_key_by_name(tmp);
|
|
||||||
if (val == TCP_CA_UNSPEC)
|
|
||||||
goto err;
|
|
||||||
} else {
|
|
||||||
val = nla_get_u32(nla);
|
|
||||||
}
|
|
||||||
|
|
||||||
mp[type - 1] = val;
|
|
||||||
__set_bit(type - 1, mxc->mx_valid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mp[type - 1] = val;
|
||||||
|
__set_bit(type - 1, mxc->mx_valid);
|
||||||
}
|
}
|
||||||
|
|
||||||
mxc->mx = mp;
|
mxc->mx = mp;
|
||||||
|
|
Loading…
Reference in New Issue