From: Davide Libenzi Date: Thu, 16 Oct 2008 05:01:56 +0000 (-0700) Subject: epoll: drop unnecessary test X-Git-Tag: v2.6.28-rc1~519 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f337b9c58332bdecde965b436e47ea4c94d30da0;p=pandora-kernel.git epoll: drop unnecessary test Thomas found that there is an unnecessary (always true) test in ep_send_events(). The callback never inserts into ->rdllink while the send loop is performed, and also does the ~EP_PRIVATE_BITS test. Given we're holding the mutex during this time, the conditions tested inside the loop are always true. This patch drops the test done inside the re-insertion loop. Signed-off-by: Davide Libenzi Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed