From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Subject: [patch] epoll: remove unneeded variable in reverse_path_check() Date: Fri, 24 Feb 2012 14:31:58 +0300 Message-ID: <20120224113158.GA17641@elgon.mountain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org To: Jason Baron Return-path: Received: from rcsinet15.oracle.com ([148.87.113.117]:21246 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751290Ab2BXLcK (ORCPT ); Fri, 24 Feb 2012 06:32:10 -0500 Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: We never use the length variable. Signed-off-by: Dan Carpenter diff --git a/fs/eventpoll.c b/fs/eventpoll.c index c636fc8..997a6d2 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1042,13 +1042,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,