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
This commit is contained in:
parent
3d3ddb44cd
commit
afbd1372e7
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user