From: Dan Carpenter Date: Fri, 23 Mar 2012 22:02:28 +0000 (-0700) Subject: epoll: remove unneeded variable in reverse_path_check() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da0503aae07f0410b6ff0a9e1d1d011701eb2758;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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 23c220774d1b..629e9ed99d0f 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,