summaryrefslogtreecommitdiffstats
path: root/sys/dev/hptrr/hptrr_osm_bsd.c
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2013-04-28 20:55:45 +0000
committersbruno <sbruno@FreeBSD.org>2013-04-28 20:55:45 +0000
commit5ae05b2097f7b2b953f828e71d1d180e2504f5ab (patch)
treea0ea341ed302ac371eaf7570947e17c29bdc5dce /sys/dev/hptrr/hptrr_osm_bsd.c
parent0f3787ab8207a6be8eb911a51268f02bf36a7ad2 (diff)
downloadFreeBSD-src-5ae05b2097f7b2b953f828e71d1d180e2504f5ab.zip
FreeBSD-src-5ae05b2097f7b2b953f828e71d1d180e2504f5ab.tar.gz
Silence warning from clang:
/home/sbruno/bsd/head/sys/dev/hptrr/hptrr_osm_bsd.c:178:66: warning: for loop has empty body [-Wempty-body] for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1) ; ^ /home/sbruno/bsd/head/sys/dev/hptrr/hptrr_osm_bsd.c:178:66: note: put the semicolon on a separate line to silence this warning Obtained from: Yahoo! Inc. MFC after: 2 weeks
Diffstat (limited to 'sys/dev/hptrr/hptrr_osm_bsd.c')
-rw-r--r--sys/dev/hptrr/hptrr_osm_bsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hptrr/hptrr_osm_bsd.c b/sys/dev/hptrr/hptrr_osm_bsd.c
index 798c2dd..9af256e 100644
--- a/sys/dev/hptrr/hptrr_osm_bsd.c
+++ b/sys/dev/hptrr/hptrr_osm_bsd.c
@@ -175,7 +175,8 @@ static int hpt_alloc_mem(PVBUS_EXT vbus_ext)
HPT_ASSERT((f->size & (f->alignment-1))==0);
- for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1) ;
+ for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1)
+ ;
KdPrint(("%s: %d*%d=%d bytes, order %d",
f->tag, f->count, f->size, f->count*f->size, order));
OpenPOWER on IntegriCloud