Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rémi Denis-Courmont and committed by
David S. Miller
4b7673a0 df7641af

+2 -4
+2 -4
net/phonet/pn_netlink.c
··· 53 53 RTNLGRP_PHONET_IFADDR, NULL, GFP_KERNEL); 54 54 return; 55 55 errout: 56 - if (err < 0) 57 - rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_IFADDR, err); 56 + rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_IFADDR, err); 58 57 } 59 58 60 59 static const struct nla_policy ifa_phonet_policy[IFA_MAX+1] = { ··· 211 212 RTNLGRP_PHONET_ROUTE, NULL, GFP_KERNEL); 212 213 return; 213 214 errout: 214 - if (err < 0) 215 - rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_ROUTE, err); 215 + rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_ROUTE, err); 216 216 } 217 217 218 218 static const struct nla_policy rtm_phonet_policy[RTA_MAX+1] = {