diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2019-04-26 05:13:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-27 17:03:44 -0400 |
commit | f78c6032c4cb89b408190afd4feb61ff4461a114 (patch) | |
tree | b49e3af8f5cac309bae80ad390ee8fc3b3679065 | |
parent | 12ad5f65f030ae7b8a2425f6f79137c4217e30d4 (diff) |
net: fix two coding style issues
This is a simple cleanup addressing two coding style issues found by
checkpatch.pl in an earlier patch. It's submitted as a separate patch to
keep the original patch as it was generated by spatch.
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/bridge/br_netlink.c | 4 | ||||
-rw-r--r-- | net/decnet/dn_table.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index 0914477c4719..348ddb6d09bb 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c | |||
@@ -413,9 +413,9 @@ static int br_fill_ifinfo(struct sk_buff *skb, | |||
413 | goto nla_put_failure; | 413 | goto nla_put_failure; |
414 | 414 | ||
415 | if (event == RTM_NEWLINK && port) { | 415 | if (event == RTM_NEWLINK && port) { |
416 | struct nlattr *nest | 416 | struct nlattr *nest; |
417 | = nla_nest_start(skb, IFLA_PROTINFO); | ||
418 | 417 | ||
418 | nest = nla_nest_start(skb, IFLA_PROTINFO); | ||
419 | if (nest == NULL || br_port_fill_attrs(skb, port) < 0) | 419 | if (nest == NULL || br_port_fill_attrs(skb, port) < 0) |
420 | goto nla_put_failure; | 420 | goto nla_put_failure; |
421 | nla_nest_end(skb, nest); | 421 | nla_nest_end(skb, nest); |
diff --git a/net/decnet/dn_table.c b/net/decnet/dn_table.c index 2fb764321b97..33fefb0aebca 100644 --- a/net/decnet/dn_table.c +++ b/net/decnet/dn_table.c | |||
@@ -348,7 +348,8 @@ static int dn_fib_dump_info(struct sk_buff *skb, u32 portid, u32 seq, int event, | |||
348 | struct rtnexthop *nhp; | 348 | struct rtnexthop *nhp; |
349 | struct nlattr *mp_head; | 349 | struct nlattr *mp_head; |
350 | 350 | ||
351 | if (!(mp_head = nla_nest_start_noflag(skb, RTA_MULTIPATH))) | 351 | mp_head = nla_nest_start_noflag(skb, RTA_MULTIPATH); |
352 | if (!mp_head) | ||
352 | goto errout; | 353 | goto errout; |
353 | 354 | ||
354 | for_nexthops(fi) { | 355 | for_nexthops(fi) { |