Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2012 16:54:14 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r241398 - head/sys/dev/cxgbe
Message-ID:  <201210101654.q9AGsETJ065281@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed Oct 10 16:54:14 2012
New Revision: 241398
URL: http://svn.freebsd.org/changeset/base/241398

Log:
  There is no need to report the same error twice.
  
  MFC after:	3 days

Modified:
  head/sys/dev/cxgbe/t4_sge.c

Modified: head/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sge.c	Wed Oct 10 16:52:39 2012	(r241397)
+++ head/sys/dev/cxgbe/t4_sge.c	Wed Oct 10 16:54:14 2012	(r241398)
@@ -417,22 +417,14 @@ t4_setup_adapter_queues(struct adapter *
 	 * Firmware event queue
 	 */
 	rc = alloc_fwq(sc);
-	if (rc != 0) {
-		device_printf(sc->dev,
-		    "failed to create firmware event queue: %d\n", rc);
+	if (rc != 0)
 		return (rc);
-	}
 
 	/*
 	 * Management queue.  This is just a control queue that uses the fwq as
 	 * its associated iq.
 	 */
 	rc = alloc_mgmtq(sc);
-	if (rc != 0) {
-		device_printf(sc->dev,
-		    "failed to create management queue: %d\n", rc);
-		return (rc);
-	}
 
 	return (rc);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210101654.q9AGsETJ065281>