svn commit: r360694 - stable/11/sys/dev/nxge/xgehal

Dimitry Andric dim at FreeBSD.org
Wed May 6 17:35:43 UTC 2020


Author: dim
Date: Wed May  6 17:35:42 2020
New Revision: 360694
URL: https://svnweb.freebsd.org/changeset/base/360694

Log:
  Fix misleading indentation warning:
  
  sys/dev/nxge/xgehal/xgehal-mgmt.c:1743:6: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
              addr = 0xA074;
              ^
  sys/dev/nxge/xgehal/xgehal-mgmt.c:1736:2: note: previous statement is here
          if(CHECKBIT(val_1, 0x0))
          ^
  
  Direct commit to stable/11, since nxge(4) has been removed from FreeBSD
  12 and later.

Modified:
  stable/11/sys/dev/nxge/xgehal/xgehal-mgmt.c

Modified: stable/11/sys/dev/nxge/xgehal/xgehal-mgmt.c
==============================================================================
--- stable/11/sys/dev/nxge/xgehal/xgehal-mgmt.c	Wed May  6 17:12:26 2020	(r360693)
+++ stable/11/sys/dev/nxge/xgehal/xgehal-mgmt.c	Wed May  6 17:35:42 2020	(r360694)
@@ -1740,9 +1740,9 @@ void __hal_updt_stats_xpak(xge_hal_device_t *hldev)
 	/*
 	 * Reading the warning flags
 	 */
-	    addr = 0xA074;
-	    val_1 = 0x0;
-	    val_1 = xge_hal_mdio_read(hldev, XGE_HAL_MDIO_MMD_PMA_DEV_ADDR, addr);
+	addr = 0xA074;
+	val_1 = 0x0;
+	val_1 = xge_hal_mdio_read(hldev, XGE_HAL_MDIO_MMD_PMA_DEV_ADDR, addr);
 	if(CHECKBIT(val_1, 0x7))
 	    hldev->stats.sw_dev_err_stats.stats_xpak.
 	        warn_transceiver_temp_high++;


More information about the svn-src-stable mailing list