Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci - Remove extra check (because the same check is ...



details:   https://anonhg.NetBSD.org/src/rev/b5ba94cc5c54
branches:  trunk
changeset: 449869:b5ba94cc5c54
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Mar 27 03:37:32 2019 +0000

description:
- Remove extra check (because the same check is done in
  if_schedule_deferred_start().
- Remove extra space.

diffstat:

 sys/dev/pci/if_bnx.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 2735a74f548a -r b5ba94cc5c54 sys/dev/pci/if_bnx.c
--- a/sys/dev/pci/if_bnx.c      Wed Mar 27 03:29:50 2019 +0000
+++ b/sys/dev/pci/if_bnx.c      Wed Mar 27 03:37:32 2019 +0000
@@ -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 @@
                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 @@
        bus_dmamap_sync(sc->bnx_dmatag, sc->status_map, 0,
            sc->status_map->dm_mapsize, BUS_DMASYNC_PREREAD);
 
-
        return rv;
 }
 



Home | Main Index | Thread Index | Old Index