Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb cue(4): Prune dead branch: IFF_BROADCAST is alwa...
details: https://anonhg.NetBSD.org/src/rev/03dfd9e46b07
branches: trunk
changeset: 369507:03dfd9e46b07
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Aug 20 14:09:10 2022 +0000
description:
cue(4): Prune dead branch: IFF_BROADCAST is always set here.
diffstat:
sys/dev/usb/if_cue.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r 77ccd3446a2e -r 03dfd9e46b07 sys/dev/usb/if_cue.c
--- a/sys/dev/usb/if_cue.c Sat Aug 20 14:08:59 2022 +0000
+++ b/sys/dev/usb/if_cue.c Sat Aug 20 14:09:10 2022 +0000
@@ -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 @@
* 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);
Home |
Main Index |
Thread Index |
Old Index