diff options
Diffstat (limited to 'net/phonet')
-rw-r--r-- | net/phonet/pn_netlink.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/phonet/pn_netlink.c b/net/phonet/pn_netlink.c index d8f5d3fb9ee2..609e509b369b 100644 --- a/net/phonet/pn_netlink.c +++ b/net/phonet/pn_netlink.c | |||
@@ -53,8 +53,7 @@ void phonet_address_notify(int event, struct net_device *dev, u8 addr) | |||
53 | RTNLGRP_PHONET_IFADDR, NULL, GFP_KERNEL); | 53 | RTNLGRP_PHONET_IFADDR, NULL, GFP_KERNEL); |
54 | return; | 54 | return; |
55 | errout: | 55 | errout: |
56 | if (err < 0) | 56 | rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_IFADDR, err); |
57 | rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_IFADDR, err); | ||
58 | } | 57 | } |
59 | 58 | ||
60 | static const struct nla_policy ifa_phonet_policy[IFA_MAX+1] = { | 59 | static const struct nla_policy ifa_phonet_policy[IFA_MAX+1] = { |
@@ -212,8 +211,7 @@ void rtm_phonet_notify(int event, struct net_device *dev, u8 dst) | |||
212 | RTNLGRP_PHONET_ROUTE, NULL, GFP_KERNEL); | 211 | RTNLGRP_PHONET_ROUTE, NULL, GFP_KERNEL); |
213 | return; | 212 | return; |
214 | errout: | 213 | errout: |
215 | if (err < 0) | 214 | rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_ROUTE, err); |
216 | rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_ROUTE, err); | ||
217 | } | 215 | } |
218 | 216 | ||
219 | static const struct nla_policy rtm_phonet_policy[RTA_MAX+1] = { | 217 | static const struct nla_policy rtm_phonet_policy[RTA_MAX+1] = { |