linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] nfsd: Drop LIST_HEAD where the variable it declares is never used.
@ 2019-11-01 11:40 Mao Wenan
  2019-11-01 13:36 ` Chuck Lever
  0 siblings, 1 reply; 4+ messages in thread
From: Mao Wenan @ 2019-11-01 11:40 UTC (permalink / raw)
  To: bfields, chuck.lever, trond.myklebust, dros, jeff.layton, richard.sharpe
  Cc: linux-nfs, linux-kernel, kernel-janitors, Mao Wenan

The declarations were introduced with the file, but the declared
variables were not used.

Fixes: 65294c1f2c5e ("nfsd: add a new struct file caching facility to nfsd")
Signed-off-by: Mao Wenan <maowenan@huawei.com>
---
 fs/nfsd/filecache.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c
index ef55e9b..32a9bf2 100644
--- a/fs/nfsd/filecache.c
+++ b/fs/nfsd/filecache.c
@@ -685,8 +685,6 @@ nfsd_file_cache_purge(struct net *net)
 void
 nfsd_file_cache_shutdown(void)
 {
-	LIST_HEAD(dispose);
-
 	set_bit(NFSD_FILE_SHUTDOWN, &nfsd_file_lru_flags);
 
 	lease_unregister_notifier(&nfsd_file_lease_notifier);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-01 15:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01 11:40 [PATCH -next] nfsd: Drop LIST_HEAD where the variable it declares is never used Mao Wenan
2019-11-01 13:36 ` Chuck Lever
2019-11-01 14:49   ` Dan Carpenter
2019-11-01 15:51     ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).