Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michal Kubecek and committed by
David S. Miller
f78c6032 12ad5f65

+4 -3
+2 -2
net/bridge/br_netlink.c
··· 413 413 goto nla_put_failure; 414 414 415 415 if (event == RTM_NEWLINK && port) { 416 - struct nlattr *nest 417 - = nla_nest_start(skb, IFLA_PROTINFO); 416 + struct nlattr *nest; 418 417 418 + nest = nla_nest_start(skb, IFLA_PROTINFO); 419 419 if (nest == NULL || br_port_fill_attrs(skb, port) < 0) 420 420 goto nla_put_failure; 421 421 nla_nest_end(skb, nest);
+2 -1
net/decnet/dn_table.c
··· 348 348 struct rtnexthop *nhp; 349 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 353 goto errout; 353 354 354 355 for_nexthops(fi) {