Commit f78c6032 authored by Michal Kubecek's avatar Michal Kubecek Committed by David S. Miller

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: default avatarMichal Kubecek <mkubecek@suse.cz>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 12ad5f65
...@@ -413,9 +413,9 @@ static int br_fill_ifinfo(struct sk_buff *skb, ...@@ -413,9 +413,9 @@ static int br_fill_ifinfo(struct sk_buff *skb,
goto nla_put_failure; goto nla_put_failure;
if (event == RTM_NEWLINK && port) { if (event == RTM_NEWLINK && port) {
struct nlattr *nest struct nlattr *nest;
= nla_nest_start(skb, IFLA_PROTINFO);
nest = nla_nest_start(skb, IFLA_PROTINFO);
if (nest == NULL || br_port_fill_attrs(skb, port) < 0) if (nest == NULL || br_port_fill_attrs(skb, port) < 0)
goto nla_put_failure; goto nla_put_failure;
nla_nest_end(skb, nest); nla_nest_end(skb, nest);
......
...@@ -348,7 +348,8 @@ static int dn_fib_dump_info(struct sk_buff *skb, u32 portid, u32 seq, int event, ...@@ -348,7 +348,8 @@ static int dn_fib_dump_info(struct sk_buff *skb, u32 portid, u32 seq, int event,
struct rtnexthop *nhp; struct rtnexthop *nhp;
struct nlattr *mp_head; struct nlattr *mp_head;
if (!(mp_head = nla_nest_start_noflag(skb, RTA_MULTIPATH))) mp_head = nla_nest_start_noflag(skb, RTA_MULTIPATH);
if (!mp_head)
goto errout; goto errout;
for_nexthops(fi) { for_nexthops(fi) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment