From: Mao Wenan Date: Fri, 1 Nov 2019 11:40:54 +0000 (+0800) Subject: nfsd: Drop LIST_HEAD where the variable it declares is never used. X-Git-Tag: v5.5-rc1~10^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2a67803e1305b6b829b361e0b2f243aafcddab0b;p=users%2Fwilly%2Fxarray.git nfsd: Drop LIST_HEAD where the variable it declares is never used. 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 Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c index ef55e9b1cd4e..32a9bf22ac08 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);