Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2020 17:35:42 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r360694 - stable/11/sys/dev/nxge/xgehal
Message-ID:  <202005061735.046HZggP061525@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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++;



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