This patch is performance improvement, not really a cleanup: sys_poll performs at least 3 dynamic memory allocations, even if just one file descriptor is polled. The attached patch avoids that by using stack space if possible. This results in a 40 % performance improvement for sys_poll on one ready file descriptor. -- Manfred