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

Jack F Vogel jfv at FreeBSD.org
Thu Sep 10 21:16:26 UTC 2009


Author: jfv
Date: Thu Sep 10 21:16:26 2009
New Revision: 197079
URL: http://svn.freebsd.org/changeset/base/197079

Log:
  Fix build issue with last commit.

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

Modified: head/sys/dev/e1000/if_igb.c
==============================================================================
--- head/sys/dev/e1000/if_igb.c	Thu Sep 10 21:14:55 2009	(r197078)
+++ head/sys/dev/e1000/if_igb.c	Thu Sep 10 21:16:26 2009	(r197079)
@@ -854,7 +854,7 @@ igb_mq_start_locked(struct ifnet *ifp, s
 
 	/* If nothing queued go right to xmit */
 	if (drbr_empty(ifp, txr->br)) {
-		if (err = igb_xmit(txr, &m)) {
+		if ((err = igb_xmit(txr, &m)) != 0) {
 			if (m != NULL)
 				err = drbr_enqueue(ifp, txr->br, m);
 			return (err);
@@ -881,7 +881,7 @@ process:
 		next = drbr_dequeue(ifp, txr->br);
 		if (next == NULL)
 			break;
-		if (err = igb_xmit(txr, &next)) {
+		if ((err = igb_xmit(txr, &next)) != 0) {
 			if (next != NULL)
 				err = drbr_enqueue(ifp, txr->br, next);
 			break;


More information about the svn-src-head mailing list