svn commit: r322962 - head/sys/dev/cxgbe/common

Navdeep Parhar np at FreeBSD.org
Mon Aug 28 04:06:42 UTC 2017


Author: np
Date: Mon Aug 28 04:06:40 2017
New Revision: 322962
URL: https://svnweb.freebsd.org/changeset/base/322962

Log:
  cxgbe(4): Remove write only variable from t4_port_init.
  
  MFC after:	3 days

Modified:
  head/sys/dev/cxgbe/common/t4_hw.c

Modified: head/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- head/sys/dev/cxgbe/common/t4_hw.c	Mon Aug 28 03:25:41 2017	(r322961)
+++ head/sys/dev/cxgbe/common/t4_hw.c	Mon Aug 28 04:06:40 2017	(r322962)
@@ -8354,12 +8354,9 @@ int t4_port_init(struct adapter *adap, int mbox, int p
 {
 	u8 addr[6];
 	int ret, i, j;
-	struct fw_port_cmd c;
 	u16 rss_size;
 	struct port_info *p = adap2pinfo(adap, port_id);
 	u32 param, val;
-
-	memset(&c, 0, sizeof(c));
 
 	for (i = 0, j = -1; i <= p->port_id; i++) {
 		do {


More information about the svn-src-head mailing list