Commit 4b7673a0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by David S. Miller

Phonet: remove tautologies

These checks don't make sense anymore since rtnl_notify() cannot fail.
Signed-off-by: default avatarRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent df7641af
...@@ -53,8 +53,7 @@ void phonet_address_notify(int event, struct net_device *dev, u8 addr) ...@@ -53,8 +53,7 @@ void phonet_address_notify(int event, struct net_device *dev, u8 addr)
RTNLGRP_PHONET_IFADDR, NULL, GFP_KERNEL); RTNLGRP_PHONET_IFADDR, NULL, GFP_KERNEL);
return; return;
errout: errout:
if (err < 0) rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_IFADDR, err);
rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_IFADDR, err);
} }
static const struct nla_policy ifa_phonet_policy[IFA_MAX+1] = { 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,8 +211,7 @@ void rtm_phonet_notify(int event, struct net_device *dev, u8 dst)
RTNLGRP_PHONET_ROUTE, NULL, GFP_KERNEL); RTNLGRP_PHONET_ROUTE, NULL, GFP_KERNEL);
return; return;
errout: errout:
if (err < 0) rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_ROUTE, err);
rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_ROUTE, err);
} }
static const struct nla_policy rtm_phonet_policy[RTA_MAX+1] = { static const struct nla_policy rtm_phonet_policy[RTA_MAX+1] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment