diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-01-13 15:57:24 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-01-15 15:01:42 -0500 |
commit | 917937025a955e239e5cdcc62b6ca9a5ef9e5e48 (patch) | |
tree | 825b530128391aa74c499962bfac87607f0f1355 /fs/nfsd/nfs4state.c | |
parent | 4cb7208a4105a74581ccd4541af75cfd772e99fb (diff) |
nfsd: nfs4state: Remove unused function
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>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 277f8b8529d6..f924f0618cb5 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -150,16 +150,6 @@ renew_client_locked(struct nfs4_client *clp) | |||
150 | clp->cl_time = get_seconds(); | 150 | clp->cl_time = get_seconds(); |
151 | } | 151 | } |
152 | 152 | ||
153 | static inline void | ||
154 | renew_client(struct nfs4_client *clp) | ||
155 | { | ||
156 | struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); | ||
157 | |||
158 | spin_lock(&nn->client_lock); | ||
159 | renew_client_locked(clp); | ||
160 | spin_unlock(&nn->client_lock); | ||
161 | } | ||
162 | |||
163 | static void put_client_renew_locked(struct nfs4_client *clp) | 153 | static void put_client_renew_locked(struct nfs4_client *clp) |
164 | { | 154 | { |
165 | struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); | 155 | struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); |