Printf fewer warnings when adding a route to an atalk address fails;

userspace will print the error.

MFC after:	3 days
This commit is contained in:
Robert Watson 2009-06-24 10:46:03 +00:00
parent 3baaf2974d
commit d376755655
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194822

View File

@ -830,7 +830,6 @@ static int
aa_addsingleroute(struct ifaddr *ifa, struct at_addr *addr,
struct at_addr *mask)
{
int error;
#if 0
printf("aa_addsingleroute: %x.%x mask %x.%x ...\n",
@ -838,22 +837,15 @@ aa_addsingleroute(struct ifaddr *ifa, struct at_addr *addr,
mask->s_node);
#endif
error = aa_dosingleroute(ifa, addr, mask, RTM_ADD, RTF_UP);
if (error)
printf("aa_addsingleroute: error %d\n", error);
return (error);
return (aa_dosingleroute(ifa, addr, mask, RTM_ADD, RTF_UP));
}
static int
aa_delsingleroute(struct ifaddr *ifa, struct at_addr *addr,
struct at_addr *mask)
{
int error;
error = aa_dosingleroute(ifa, addr, mask, RTM_DELETE, 0);
if (error)
printf("aa_delsingleroute: error %d\n", error);
return (error);
return (aa_dosingleroute(ifa, addr, mask, RTM_DELETE, 0));
}
static int