diff options
Diffstat (limited to 'net/decnet/dn_dev.c')
-rw-r--r-- | net/decnet/dn_dev.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c index 74d321a60e7b..16efcda2f060 100644 --- a/net/decnet/dn_dev.c +++ b/net/decnet/dn_dev.c | |||
@@ -695,13 +695,13 @@ static int dn_nl_fill_ifaddr(struct sk_buff *skb, struct dn_ifaddr *ifa, | |||
695 | ifm->ifa_scope = ifa->ifa_scope; | 695 | ifm->ifa_scope = ifa->ifa_scope; |
696 | ifm->ifa_index = ifa->ifa_dev->dev->ifindex; | 696 | ifm->ifa_index = ifa->ifa_dev->dev->ifindex; |
697 | 697 | ||
698 | if (ifa->ifa_address) | 698 | if ((ifa->ifa_address && |
699 | NLA_PUT_LE16(skb, IFA_ADDRESS, ifa->ifa_address); | 699 | nla_put_le16(skb, IFA_ADDRESS, ifa->ifa_address)) || |
700 | if (ifa->ifa_local) | 700 | (ifa->ifa_local && |
701 | NLA_PUT_LE16(skb, IFA_LOCAL, ifa->ifa_local); | 701 | nla_put_le16(skb, IFA_LOCAL, ifa->ifa_local)) || |
702 | if (ifa->ifa_label[0]) | 702 | (ifa->ifa_label[0] && |
703 | NLA_PUT_STRING(skb, IFA_LABEL, ifa->ifa_label); | 703 | nla_put_string(skb, IFA_LABEL, ifa->ifa_label))) |
704 | 704 | goto nla_put_failure; | |
705 | return nlmsg_end(skb, nlh); | 705 | return nlmsg_end(skb, nlh); |
706 | 706 | ||
707 | nla_put_failure: | 707 | nla_put_failure: |