summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormsaitoh <msaitoh@NetBSD.org>2019-03-27 03:37:32 +0000
committermsaitoh <msaitoh@NetBSD.org>2019-03-27 03:37:32 +0000
commit5e8586100604c2aae21e8a3da9e0398d27d3aedb (patch)
tree24723e6da335153374494bdcf2715afd9ca6b8e4 /sys/dev
parenta6d2fdfa0f893c6ff00f94d773fd2d427d209020 (diff)
- Remove extra check (because the same check is done in
if_schedule_deferred_start(). - Remove extra space.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_bnx.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/if_bnx.c b/sys/dev/pci/if_bnx.c
index 28173e762fa..c5f063b598b 100644
--- a/sys/dev/pci/if_bnx.c
+++ b/sys/dev/pci/if_bnx.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bnx.c,v 1.70 2019/03/27 03:29:50 msaitoh Exp $ */
+/* $NetBSD: if_bnx.c,v 1.71 2019/03/27 03:37:32 msaitoh Exp $ */
/* $OpenBSD: if_bnx.c,v 1.94 2011/04/18 04:27:31 dlg Exp $ */
/*-
@@ -35,7 +35,7 @@
#if 0
__FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
#endif
-__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.70 2019/03/27 03:29:50 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.71 2019/03/27 03:37:32 msaitoh Exp $");
/*
* The following controllers are supported by this driver:
@@ -5342,8 +5342,7 @@ bnx_intr(void *xsc)
sc->last_status_idx = status_idx;
/* Start moving packets again */
- if (ifp->if_flags & IFF_RUNNING &&
- !IFQ_IS_EMPTY(&ifp->if_snd))
+ if (ifp->if_flags & IFF_RUNNING)
if_schedule_deferred_start(ifp);
}
@@ -5351,7 +5350,6 @@ out:
bus_dmamap_sync(sc->bnx_dmatag, sc->status_map, 0,
sc->status_map->dm_mapsize, BUS_DMASYNC_PREREAD);
-
return rv;
}