]> Git Repo - linux.git/commitdiff
epoll: remove unneeded variable in reverse_path_check()
authorDan Carpenter <[email protected]>
Fri, 23 Mar 2012 22:02:28 +0000 (15:02 -0700)
committerLinus Torvalds <[email protected]>
Fri, 23 Mar 2012 23:58:38 +0000 (16:58 -0700)
We never use the length variable.

Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Jason Baron <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/eventpoll.c

index 23c220774d1bf8bdb06ad29430d9463fbad6d64a..629e9ed99d0f6101949741f640b2c124e8dd71fe 100644 (file)
@@ -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,
This page took 0.056901 seconds and 4 git commands to generate.