svn commit: r301276 - head/sys/dev/nxge/xgehal

Pedro F. Giffuni pfg at FreeBSD.org
Fri Jun 3 15:33:23 UTC 2016


Author: pfg
Date: Fri Jun  3 15:33:21 2016
New Revision: 301276
URL: https://svnweb.freebsd.org/changeset/base/301276

Log:
  nxge(4): Remove useless self-assignment.
  
  Apparently the original implementation brought a self-assignment
  to work around some bogus lint issue that is not relevant anymore.
  
  CID:	1347070

Modified:
  head/sys/dev/nxge/xgehal/xgehal-device.c

Modified: head/sys/dev/nxge/xgehal/xgehal-device.c
==============================================================================
--- head/sys/dev/nxge/xgehal/xgehal-device.c	Fri Jun  3 14:37:18 2016	(r301275)
+++ head/sys/dev/nxge/xgehal/xgehal-device.c	Fri Jun  3 15:33:21 2016	(r301276)
@@ -3321,7 +3321,6 @@ __hal_update_bimodal(xge_hal_device_t *h
 	iwl_txcnt = (hldev->irq_workload_txcnt[ring_no] ?
 	                 hldev->irq_workload_txcnt[ring_no] : 1);
 	iwl_cnt = iwl_rxcnt + iwl_txcnt;
-	iwl_cnt = iwl_cnt; /* just to remove the lint warning */
 
 	/*
 	 * we need to take hldev->config.isr_polling_cnt into account


More information about the svn-src-head mailing list