Permalink
Browse files

makes non-IGMPv3 part similar as much as possible

  • Loading branch information...
1 parent a68736b commit 63d401ee485bc0c13c6341608c8b55ba39338ca8 suz committed Jul 24, 2005
Showing with 0 additions and 10 deletions.
  1. +0 −5 netbsd/sys/netinet/in.c
  2. +0 −5 openbsd/sys/netinet/in.c
View
@@ -1111,8 +1111,6 @@ in_addmulti(ap, ifp)
struct in_multi *inm;
struct ifreq ifr;
struct in_ifaddr *ia;
- int dummy; /* dummy */
- int *error = &dummy; /* dummy */
int s = splsoftnet();
/*
@@ -1129,7 +1127,6 @@ in_addmulti(ap, ifp)
*/
inm = (struct in_multi *)malloc(sizeof(*inm), M_IPMADDR, M_NOWAIT);
if (inm == NULL) {
- *error = ENOBUFS;
splx(s);
return (NULL);
}
@@ -1140,7 +1137,6 @@ in_addmulti(ap, ifp)
IFP_TO_IA(ifp, ia);
if (ia == NULL) {
free(inm, M_IPMADDR);
- *error = ENOBUFS /*???*/;
splx(s);
return (NULL);
}
@@ -1158,7 +1154,6 @@ in_addmulti(ap, ifp)
(*ifp->if_ioctl)(ifp, SIOCADDMULTI, (caddr_t)&ifr) != 0) {
LIST_REMOVE(inm, inm_list);
free(inm, M_IPMADDR);
- *error = EINVAL /*???*/;
splx(s);
return (NULL);
}
View
@@ -983,8 +983,6 @@ in_addmulti(ap, ifp)
struct in_multi *inm;
struct ifreq ifr;
struct in_ifaddr *ia;
- int dummy; /* dummy */
- int *error = &dummy; /* dummy */
int s = splsoftnet();
/*
@@ -1001,7 +999,6 @@ in_addmulti(ap, ifp)
*/
inm = (struct in_multi *)malloc(sizeof(*inm), M_IPMADDR, M_NOWAIT);
if (inm == NULL) {
- *error = ENOBUFS;
splx(s);
return (NULL);
}
@@ -1012,7 +1009,6 @@ in_addmulti(ap, ifp)
IFP_TO_IA(ifp, ia);
if (ia == NULL) {
free(inm, M_IPMADDR);
- *error = ENOBUFS /*???*/;
splx(s);
return (NULL);
}
@@ -1030,7 +1026,6 @@ in_addmulti(ap, ifp)
(*ifp->if_ioctl)(ifp, SIOCADDMULTI, (caddr_t)&ifr) != 0) {
LIST_REMOVE(inm, inm_list);
free(inm, M_IPMADDR);
- *error = EINVAL /*???*/;
splx(s);
return (NULL);
}

0 comments on commit 63d401e

Please sign in to comment.