Clean the arch_memory_op() for-loop header.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-11-26 10:43:27 +01:00
1 parent 03d49c4c35
commit 2e9d882a69
1 file changed
+2 -3
+2 -3
View File
@@ -190,7 +190,8 @@ long arch_memory_op(int op, void *arg)
if ( copy_from_user(&xmml, arg, sizeof(xmml)) )
return -EFAULT;
for ( i = 0, v = RDWR_MPT_VIRT_START; v != RDWR_MPT_VIRT_END;
for ( i = 0, v = RDWR_MPT_VIRT_START;
(i != xmml.max_extents) && (v != RDWR_MPT_VIRT_END);
i++, v += 1 << 21 )
{
l3e = l4e_to_l3e(idle_pg_table[l4_table_offset(v)])[
@@ -201,8 +202,6 @@ long arch_memory_op(int op, void *arg)
if ( !(l2e_get_flags(l2e) & _PAGE_PRESENT) )
break;
mfn = l2e_get_pfn(l2e) + l1_table_offset(v);
if ( i == xmml.max_extents )
break;
if ( put_user(mfn, &xmml.extent_start[i]) )
return -EFAULT;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.