svn commit: r300846 - head/sys/dev/sfxge/common

Andrew Rybchenko arybchik at FreeBSD.org
Fri May 27 11:48:26 UTC 2016


Author: arybchik
Date: Fri May 27 11:48:25 2016
New Revision: 300846
URL: https://svnweb.freebsd.org/changeset/base/300846

Log:
  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.
  MFC after:      1 week

Modified:
  head/sys/dev/sfxge/common/mcdi_mon.c

Modified: head/sys/dev/sfxge/common/mcdi_mon.c
==============================================================================
--- head/sys/dev/sfxge/common/mcdi_mon.c	Fri May 27 11:47:56 2016	(r300845)
+++ head/sys/dev/sfxge/common/mcdi_mon.c	Fri May 27 11:48:25 2016	(r300846)
@@ -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