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 redundant checks.



details:   https://anonhg.NetBSD.org/src/rev/1224c9a6a715
branches:  trunk
changeset: 972383:1224c9a6a715
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Mon May 25 09:07:43 2020 +0000

description:
Remove redundant checks.
There is the same check in vioif_send_common_locked()

diffstat:

 sys/dev/pci/if_vioif.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r e4325e3d3ef7 -r 1224c9a6a715 sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c    Mon May 25 08:41:13 2020 +0000
+++ b/sys/dev/pci/if_vioif.c    Mon May 25 09:07:43 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vioif.c,v 1.58 2020/05/25 08:41:13 yamaguchi Exp $  */
+/*     $NetBSD: if_vioif.c,v 1.59 2020/05/25 09:07:43 yamaguchi Exp $  */
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.58 2020/05/25 08:41:13 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.59 2020/05/25 09:07:43 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -1375,8 +1375,7 @@
 #endif
 
        mutex_enter(txq->txq_lock);
-       if (!txq->txq_stopping)
-               vioif_start_locked(ifp, txq);
+       vioif_start_locked(ifp, txq);
        mutex_exit(txq->txq_lock);
 }
 
@@ -1418,8 +1417,7 @@
        IF_STAT_PUTREF(ifp);
 
        if (mutex_tryenter(txq->txq_lock)) {
-               if (!txq->txq_stopping)
-                       vioif_transmit_locked(ifp, txq);
+               vioif_transmit_locked(ifp, txq);
                mutex_exit(txq->txq_lock);
        }
 



Home | Main Index | Thread Index | Old Index