svn commit: r197078 - head/sys/dev/e1000

Jack F Vogel jfv at FreeBSD.org
Thu Sep 10 21:14:56 UTC 2009


Author: jfv
Date: Thu Sep 10 21:14:55 2009
New Revision: 197078
URL: http://svn.freebsd.org/changeset/base/197078

Log:
  Fix build complaint from previous checkin

Modified:
  head/sys/dev/e1000/if_em.c

Modified: head/sys/dev/e1000/if_em.c
==============================================================================
--- head/sys/dev/e1000/if_em.c	Thu Sep 10 19:27:53 2009	(r197077)
+++ head/sys/dev/e1000/if_em.c	Thu Sep 10 21:14:55 2009	(r197078)
@@ -1034,7 +1034,7 @@ em_mq_start_locked(struct ifnet *ifp, st
 		return (error);
 	} else if (drbr_empty(ifp, adapter->br) &&
 	    (adapter->num_tx_desc_avail > EM_TX_OP_THRESHOLD)) {
-		if (error = em_xmit(adapter, &m)) {
+		if ((error = em_xmit(adapter, &m)) != 0) {
 			if (m != NULL)
 				error = drbr_enqueue(ifp, adapter->br, m);
 			return (error);
@@ -1064,7 +1064,7 @@ process:
                 next = drbr_dequeue(ifp, adapter->br);
                 if (next == NULL)
                         break;
-                if (error = em_xmit(adapter, &next)) {
+                if ((error = em_xmit(adapter, &next)) != 0) {
 			if (next != NULL)
 				error = drbr_enqueue(ifp, adapter->br, next);
                         break;


More information about the svn-src-all mailing list