nfsd: nfs4state: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Tue, 13 Jan 2015 20:57:24 +0000 (21:57 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 15 Jan 2015 20:01:42 +0000 (15:01 -0500)
Remove the function renew_client() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c

index 277f8b8529d6f5fb69112d6eb580e48b4ac95a15..f924f0618cb59f3f989c4e35264e686ec16e7e5b 100644 (file)
@@ -150,16 +150,6 @@ renew_client_locked(struct nfs4_client *clp)
        clp->cl_time = get_seconds();
 }
 
-static inline void
-renew_client(struct nfs4_client *clp)
-{
-       struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
-
-       spin_lock(&nn->client_lock);
-       renew_client_locked(clp);
-       spin_unlock(&nn->client_lock);
-}
-
 static void put_client_renew_locked(struct nfs4_client *clp)
 {
        struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);