ia64/xen-unstable
changeset 10180:4c058926e92b
Remove redundant test in grant-table interface code.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Thu May 25 15:55:07 2006 +0100 (2006-05-25) |
parents | 41de9cd7971b |
children | f4f4dd936103 |
files | xen/common/grant_table.c |
line diff
1.1 --- a/xen/common/grant_table.c Thu May 25 15:52:38 2006 +0100 1.2 +++ b/xen/common/grant_table.c Thu May 25 15:55:07 2006 +0100 1.3 @@ -505,15 +505,12 @@ gnttab_setup_table( 1.4 goto out; 1.5 } 1.6 1.7 - if ( op.nr_frames <= NR_GRANT_FRAMES ) 1.8 + ASSERT(d->grant_table != NULL); 1.9 + op.status = GNTST_okay; 1.10 + for ( i = 0; i < op.nr_frames; i++ ) 1.11 { 1.12 - ASSERT(d->grant_table != NULL); 1.13 - op.status = GNTST_okay; 1.14 - for ( i = 0; i < op.nr_frames; i++ ) 1.15 - { 1.16 - gmfn = gnttab_shared_gmfn(d, d->grant_table, i); 1.17 - (void)copy_to_guest_offset(op.frame_list, i, &gmfn, 1); 1.18 - } 1.19 + gmfn = gnttab_shared_gmfn(d, d->grant_table, i); 1.20 + (void)copy_to_guest_offset(op.frame_list, i, &gmfn, 1); 1.21 } 1.22 1.23 put_domain(d);