From: Oleg Nesterov Date: Wed, 17 Oct 2007 06:26:17 +0000 (-0700) Subject: do_sys_poll: simplify playing with on-stack data X-Git-Tag: v2.6.24-rc1~758 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=252e5725cfb55a89e54888317856903fef9d5031;p=pandora-kernel.git do_sys_poll: simplify playing with on-stack data Cleanup. Lessens both the source and compiled code (100 bytes) and imho makes the code much more understandable. With this patch "struct poll_list *head" always points to on-stack stack_pps, so we can remove all "is it on-stack" and "was it initialized" checks. Also, move poll_initwait/poll_freewait and -EINTR detection closer to the do_poll()'s callsite. [akpm@linux-foundation.org: fix warning (size_t != uint)] Signed-off-by: Oleg Nesterov Looks-good-to: Andi Kleen Cc: Davide Libenzi Cc: Vadim Lobanov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed