diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-08-20 14:09:10 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-08-20 14:09:10 +0000 |
| commit | 76d135c9d749eaa7c49a8c4e78718cbe35161db6 (patch) | |
| tree | aaaf51654d1f4e120c4a0eea21815603e5d36590 /sys/dev | |
| parent | 719d0235f16039ab78cbb2f6ba16f8083cc4ac70 (diff) | |
cue(4): Prune dead branch: IFF_BROADCAST is always set here.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/if_cue.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index 76061722284..ec2f6d04d6c 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_cue.c,v 1.107 2022/08/20 14:08:59 riastradh Exp $ */ +/* $NetBSD: if_cue.c,v 1.108 2022/08/20 14:09:10 riastradh Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -57,7 +57,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_cue.c,v 1.107 2022/08/20 14:08:59 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_cue.c,v 1.108 2022/08/20 14:09:10 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -405,10 +405,8 @@ allmulti: * Also include the broadcast address in the filter * so we can receive broadcast frames. */ - if (ifp->if_flags & IFF_BROADCAST) { - h = cue_crc(etherbroadcastaddr); - sc->cue_mctab[h >> 3] |= 1 << (h & 0x7); - } + h = cue_crc(etherbroadcastaddr); + sc->cue_mctab[h >> 3] |= 1 << (h & 0x7); cue_mem(un, CUE_CMD_WRITESRAM, CUE_MCAST_TABLE_ADDR, &sc->cue_mctab, CUE_MCAST_TABLE_LEN); |
