svn commit: r301398 - stable/10/sys/dev/sfxge/common

Andrew Rybchenko arybchik at FreeBSD.org
Sat Jun 4 17:20:52 UTC 2016


Author: arybchik
Date: Sat Jun  4 17:20:50 2016
New Revision: 301398
URL: https://svnweb.freebsd.org/changeset/base/301398

Log:
  MFC r300846
  
  sfxge(4): unsigned 1 should be shifted to produce bitmask
  
  Found by lint on illumos.
  
  Submitted by:   Garrett D'Amore <garrett at damore.org>
  Sponsored by:   Solarflare Communications, Inc.

Modified:
  stable/10/sys/dev/sfxge/common/mcdi_mon.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/common/mcdi_mon.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/mcdi_mon.c	Sat Jun  4 17:19:25 2016	(r301397)
+++ stable/10/sys/dev/sfxge/common/mcdi_mon.c	Sat Jun  4 17:20:50 2016	(r301398)
@@ -367,7 +367,7 @@ efx_mcdi_sensor_info_npages(
 			goto fail1;
 		}
 	} while (MCDI_OUT_DWORD(req, SENSOR_INFO_OUT_MASK) &
-	    (1 << MC_CMD_SENSOR_PAGE0_NEXT));
+	    (1U << MC_CMD_SENSOR_PAGE0_NEXT));
 
 	*npagesp = page;
 


More information about the svn-src-all mailing list