ia64/xen-unstable
changeset 544:43143729d373
bitkeeper revision 1.303 (3f0ad1a61FnuXVGdcIqVKvhMgep_6w)
Get rid of the max_aces stuff -- the size of the outgoing
buffer is fixed anyway, so there's very little point.
Get rid of the max_aces stuff -- the size of the outgoing
buffer is fixed anyway, so there's very little point.
author | sos22@labyrinth.cl.cam.ac.uk |
---|---|
date | Tue Jul 08 14:13:58 2003 +0000 (2003-07-08) |
parents | aa26e81d8c04 |
children | 6361e72ebf4c c917764fdbc0 c6fbb3f58de1 |
files | xen/drivers/block/xen_physdisk.c |
line diff
1.1 --- a/xen/drivers/block/xen_physdisk.c Tue Jul 08 13:33:33 2003 +0000 1.2 +++ b/xen/drivers/block/xen_physdisk.c Tue Jul 08 14:13:58 2003 +0000 1.3 @@ -149,13 +149,11 @@ static int xen_physdisk_grant_access(uns 1.4 static void xen_physdisk_probe_access(physdisk_probebuf_t * buf, 1.5 struct task_struct *p) 1.6 { 1.7 - int max_aces; 1.8 int n_aces; 1.9 struct list_head *cur_ace_head; 1.10 struct physdisk_ace *cur_ace; 1.11 int x = 0; 1.12 1.13 - max_aces = buf->n_aces; 1.14 n_aces = 0; 1.15 list_for_each(cur_ace_head, &p->physdisk_aces) { 1.16 x++; 1.17 @@ -167,8 +165,6 @@ static void xen_physdisk_probe_access(ph 1.18 buf->entries[n_aces].n_sectors = cur_ace->n_sectors; 1.19 buf->entries[n_aces].mode = cur_ace->mode; 1.20 n_aces++; 1.21 - if (n_aces >= max_aces) 1.22 - break; 1.23 } 1.24 } 1.25 buf->n_aces = n_aces;