Module Name:    src
Committed By:   yamaguchi
Date:           Mon May 25 09:07:43 UTC 2020

Modified Files:
        src/sys/dev/pci: if_vioif.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/pci/if_vioif.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_vioif.c
diff -u src/sys/dev/pci/if_vioif.c:1.58 src/sys/dev/pci/if_vioif.c:1.59
--- src/sys/dev/pci/if_vioif.c:1.58	Mon May 25 08:41:13 2020
+++ src/sys/dev/pci/if_vioif.c	Mon May 25 09:07:43 2020
@@ -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 @@ vioif_start(struct ifnet *ifp)
 #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 @@ vioif_transmit(struct ifnet *ifp, struct
 	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);
 	}
 

Reply via email to