diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2019-04-26 11:13:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-27 17:03:44 -0400 |
commit | f78c6032c4cb89b408190afd4feb61ff4461a114 (patch) | |
tree | b49e3af8f5cac309bae80ad390ee8fc3b3679065 /net/decnet | |
parent | 12ad5f65f030ae7b8a2425f6f79137c4217e30d4 (diff) | |
download | linux-stable-f78c6032c4cb89b408190afd4feb61ff4461a114.tar.gz linux-stable-f78c6032c4cb89b408190afd4feb61ff4461a114.tar.bz2 linux-stable-f78c6032c4cb89b408190afd4feb61ff4461a114.zip |
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>
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_table.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, struct rtnexthop *nhp; 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; for_nexthops(fi) { |