Phonet: remove tautologies
These checks don't make sense anymore since rtnl_notify() cannot fail. Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
df7641af49
commit
4b7673a04a
1 changed files with 2 additions and 4 deletions
|
@ -53,7 +53,6 @@ void phonet_address_notify(int event, struct net_device *dev, u8 addr)
|
|||
RTNLGRP_PHONET_IFADDR, NULL, GFP_KERNEL);
|
||||
return;
|
||||
errout:
|
||||
if (err < 0)
|
||||
rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_IFADDR, err);
|
||||
}
|
||||
|
||||
|
@ -212,7 +211,6 @@ void rtm_phonet_notify(int event, struct net_device *dev, u8 dst)
|
|||
RTNLGRP_PHONET_ROUTE, NULL, GFP_KERNEL);
|
||||
return;
|
||||
errout:
|
||||
if (err < 0)
|
||||
rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_ROUTE, err);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue