* [PATCH] nfsd: nfs4state: Remove unused function
@ 2015-01-13 20:57 Rickard Strandqvist
2015-01-14 21:50 ` J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: Rickard Strandqvist @ 2015-01-13 20:57 UTC (permalink / raw)
To: J. Bruce Fields, linux-nfs; +Cc: Rickard Strandqvist, linux-kernel
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>
---
fs/nfsd/nfs4state.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index e9c3afe..5d63c5c 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -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);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nfsd: nfs4state: Remove unused function
2015-01-13 20:57 [PATCH] nfsd: nfs4state: Remove unused function Rickard Strandqvist
@ 2015-01-14 21:50 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2015-01-14 21:50 UTC (permalink / raw)
To: Rickard Strandqvist; +Cc: linux-nfs, linux-kernel
On Tue, Jan 13, 2015 at 09:57:24PM +0100, Rickard Strandqvist wrote:
> Remove the function renew_client() that is not used anywhere.
>
> This was partially found by using a static code analysis program called cppcheck.
Huh. OK, queueing up for 3.20.--b.
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> ---
> fs/nfsd/nfs4state.c | 10 ----------
> 1 file changed, 10 deletions(-)
>
> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> index e9c3afe..5d63c5c 100644
> --- a/fs/nfsd/nfs4state.c
> +++ b/fs/nfsd/nfs4state.c
> @@ -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);
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-14 21:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-13 20:57 [PATCH] nfsd: nfs4state: Remove unused function Rickard Strandqvist
2015-01-14 21:50 ` 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