From: Dan Carpenter Date: Fri, 23 Mar 2012 22:02:28 +0000 (-0700) Subject: epoll: remove unneeded variable in reverse_path_check() X-Git-Tag: v3.4-rc1~109^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da0503aae07f0410b6ff0a9e1d1d011701eb2758;p=platform%2Fupstream%2Fkernel-adaptation-pc.git epoll: remove unneeded variable in reverse_path_check() We never use the length variable. Signed-off-by: Dan Carpenter Acked-by: Jason Baron Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 23c2207..629e9ed 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1077,13 +1077,11 @@ static int reverse_path_check_proc(void *priv, void *cookie, int call_nests) */ static int reverse_path_check(void) { - int length = 0; int error = 0; struct file *current_file; /* let's call this for all tfiles */ list_for_each_entry(current_file, &tfile_check_list, f_tfile_llink) { - length++; path_count_init(); error = ep_call_nested(&poll_loop_ncalls, EP_MAX_NESTS, reverse_path_check_proc, current_file,