mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Killed a gratuitous assignment in a NetBSD case.
This commit is contained in:
parent
6f5818b074
commit
3f3a8e84cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29998
2 changed files with 2 additions and 10 deletions
|
@ -27,7 +27,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_fxp.c,v 1.41 1997/09/29 11:27:42 davidg Exp $
|
||||
* $Id: if_fxp.c,v 1.42 1997/09/30 10:50:45 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1631,9 +1631,6 @@ fxp_ioctl(ifp, command, data)
|
|||
case SIOCDELMULTI:
|
||||
sc->all_mcasts = (ifp->if_flags & IFF_ALLMULTI) ? 1 : 0;
|
||||
#if defined(__NetBSD__)
|
||||
{
|
||||
struct ifreq *ifr = (struct ifreq *) data;
|
||||
|
||||
error = (command == SIOCADDMULTI) ?
|
||||
ether_addmulti(ifr, &sc->sc_ethercom) :
|
||||
ether_delmulti(ifr, &sc->sc_ethercom);
|
||||
|
@ -1653,7 +1650,6 @@ fxp_ioctl(ifp, command, data)
|
|||
fxp_init(sc);
|
||||
error = 0;
|
||||
}
|
||||
}
|
||||
#else /* __FreeBSD__ */
|
||||
/*
|
||||
* Multicast list has changed; set the hardware filter
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_fxp.c,v 1.41 1997/09/29 11:27:42 davidg Exp $
|
||||
* $Id: if_fxp.c,v 1.42 1997/09/30 10:50:45 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1631,9 +1631,6 @@ fxp_ioctl(ifp, command, data)
|
|||
case SIOCDELMULTI:
|
||||
sc->all_mcasts = (ifp->if_flags & IFF_ALLMULTI) ? 1 : 0;
|
||||
#if defined(__NetBSD__)
|
||||
{
|
||||
struct ifreq *ifr = (struct ifreq *) data;
|
||||
|
||||
error = (command == SIOCADDMULTI) ?
|
||||
ether_addmulti(ifr, &sc->sc_ethercom) :
|
||||
ether_delmulti(ifr, &sc->sc_ethercom);
|
||||
|
@ -1653,7 +1650,6 @@ fxp_ioctl(ifp, command, data)
|
|||
fxp_init(sc);
|
||||
error = 0;
|
||||
}
|
||||
}
|
||||
#else /* __FreeBSD__ */
|
||||
/*
|
||||
* Multicast list has changed; set the hardware filter
|
||||
|
|
Loading…
Reference in a new issue