* [PATCH] nfsd: trivial: remove unused variable from nfsd4_lock
@ 2012-03-30 13:46 Jeff Layton
2012-04-09 22:43 ` J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2012-03-30 13:46 UTC (permalink / raw)
To: bfields; +Cc: linux-nfs
..."fp" is set but never used.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
fs/nfsd/nfs4state.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 1841f8b..a822e31 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -4055,7 +4055,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
struct nfs4_openowner *open_sop = NULL;
struct nfs4_lockowner *lock_sop = NULL;
struct nfs4_ol_stateid *lock_stp;
- struct nfs4_file *fp;
struct file *filp = NULL;
struct file_lock file_lock;
struct file_lock conflock;
@@ -4123,7 +4122,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
goto out;
}
lock_sop = lockowner(lock_stp->st_stateowner);
- fp = lock_stp->st_file;
lkflg = setlkflg(lock->lk_type);
status = nfs4_check_openmode(lock_stp, lkflg);
--
1.7.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nfsd: trivial: remove unused variable from nfsd4_lock
2012-03-30 13:46 [PATCH] nfsd: trivial: remove unused variable from nfsd4_lock Jeff Layton
@ 2012-04-09 22:43 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2012-04-09 22:43 UTC (permalink / raw)
To: Jeff Layton; +Cc: linux-nfs
On Fri, Mar 30, 2012 at 09:46:21AM -0400, Jeff Layton wrote:
> ..."fp" is set but never used.
Thanks, applying for 3.5.
--b.
>
> Signed-off-by: Jeff Layton <jlayton@redhat.com>
> ---
> fs/nfsd/nfs4state.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> index 1841f8b..a822e31 100644
> --- a/fs/nfsd/nfs4state.c
> +++ b/fs/nfsd/nfs4state.c
> @@ -4055,7 +4055,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
> struct nfs4_openowner *open_sop = NULL;
> struct nfs4_lockowner *lock_sop = NULL;
> struct nfs4_ol_stateid *lock_stp;
> - struct nfs4_file *fp;
> struct file *filp = NULL;
> struct file_lock file_lock;
> struct file_lock conflock;
> @@ -4123,7 +4122,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
> goto out;
> }
> lock_sop = lockowner(lock_stp->st_stateowner);
> - fp = lock_stp->st_file;
>
> lkflg = setlkflg(lock->lk_type);
> status = nfs4_check_openmode(lock_stp, lkflg);
> --
> 1.7.7.6
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-09 22:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-30 13:46 [PATCH] nfsd: trivial: remove unused variable from nfsd4_lock Jeff Layton
2012-04-09 22:43 ` 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;
as well as URLs for NNTP newsgroup(s).