# HG changeset patch # User kaf24@firebug.cl.cam.ac.uk # Date 1148568907 -3600 # Node ID 4c058926e92b4e1a2b42c46045217f2de031c8d4 # Parent 41de9cd7971b565dd3286ce499a6b8063f6d686c Remove redundant test in grant-table interface code. Signed-off-by: Jimi Xenidis diff -r 41de9cd7971b -r 4c058926e92b xen/common/grant_table.c --- a/xen/common/grant_table.c Thu May 25 15:52:38 2006 +0100 +++ b/xen/common/grant_table.c Thu May 25 15:55:07 2006 +0100 @@ -505,15 +505,12 @@ gnttab_setup_table( goto out; } - if ( op.nr_frames <= NR_GRANT_FRAMES ) + ASSERT(d->grant_table != NULL); + op.status = GNTST_okay; + for ( i = 0; i < op.nr_frames; i++ ) { - ASSERT(d->grant_table != NULL); - op.status = GNTST_okay; - for ( i = 0; i < op.nr_frames; i++ ) - { - gmfn = gnttab_shared_gmfn(d, d->grant_table, i); - (void)copy_to_guest_offset(op.frame_list, i, &gmfn, 1); - } + gmfn = gnttab_shared_gmfn(d, d->grant_table, i); + (void)copy_to_guest_offset(op.frame_list, i, &gmfn, 1); } put_domain(d);