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.
This commit is contained in:
sos22@labyrinth.cl.cam.ac.uk committed 2003-07-08 14:13:58 +00:00
1 parent 8ca1b8fae9
commit 52755be898
1 file changed
-4
-4
View File
@@ -149,13 +149,11 @@ static int xen_physdisk_grant_access(unsigned short dev,
static void xen_physdisk_probe_access(physdisk_probebuf_t * buf,
struct task_struct *p)
{
int max_aces;
int n_aces;
struct list_head *cur_ace_head;
struct physdisk_ace *cur_ace;
int x = 0;
max_aces = buf->n_aces;
n_aces = 0;
list_for_each(cur_ace_head, &p->physdisk_aces) {
x++;
@@ -167,8 +165,6 @@ static void xen_physdisk_probe_access(physdisk_probebuf_t * buf,
buf->entries[n_aces].n_sectors = cur_ace->n_sectors;
buf->entries[n_aces].mode = cur_ace->mode;
n_aces++;
if (n_aces >= max_aces)
break;
}
}
buf->n_aces = n_aces;
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.