svn commit: r298801 - head/sys/compat/x86bios
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Apr 29 20:22:11 UTC 2016
Author: pfg
Date: Fri Apr 29 20:22:10 2016
New Revision: 298801
URL: https://svnweb.freebsd.org/changeset/base/298801
Log:
x86bios_alloc(): Unsign a counter.
The value can't even be signed so we can avoid the signed vs. unsigned
comparison.
Reviewed by: jkim
Modified:
head/sys/compat/x86bios/x86bios.c
Modified: head/sys/compat/x86bios/x86bios.c
==============================================================================
--- head/sys/compat/x86bios/x86bios.c Fri Apr 29 20:22:01 2016 (r298800)
+++ head/sys/compat/x86bios/x86bios.c Fri Apr 29 20:22:10 2016 (r298801)
@@ -119,7 +119,7 @@ void *
x86bios_alloc(uint32_t *offset, size_t size, int flags)
{
void *vaddr;
- int i;
+ u_int i;
if (offset == NULL || size == 0)
return (NULL);
More information about the svn-src-head
mailing list