Skip to content

Commit f78c603

Browse files
mkubecekdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 12ad5f6 commit f78c603

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

net/bridge/br_netlink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,9 @@ static int br_fill_ifinfo(struct sk_buff *skb,
413413
goto nla_put_failure;
414414

415415
if (event == RTM_NEWLINK && port) {
416-
struct nlattr *nest
417-
= nla_nest_start(skb, IFLA_PROTINFO);
416+
struct nlattr *nest;
418417

418+
nest = nla_nest_start(skb, IFLA_PROTINFO);
419419
if (nest == NULL || br_port_fill_attrs(skb, port) < 0)
420420
goto nla_put_failure;
421421
nla_nest_end(skb, nest);

net/decnet/dn_table.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ static int dn_fib_dump_info(struct sk_buff *skb, u32 portid, u32 seq, int event,
348348
struct rtnexthop *nhp;
349349
struct nlattr *mp_head;
350350

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)
352353
goto errout;
353354

354355
for_nexthops(fi) {

0 commit comments

Comments
 (0)