]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nfsd: Drop LIST_HEAD where the variable it declares is never used.
authorMao Wenan <maowenan@huawei.com>
Fri, 1 Nov 2019 11:40:54 +0000 (19:40 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 8 Nov 2019 17:32:59 +0000 (12:32 -0500)
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>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/filecache.c

index ef55e9b1cd4e458b6b8516909645e1ca987fdcb1..32a9bf22ac08d837f548b25a49363c7faf91f5ff 100644 (file)
@@ -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);