diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-25 07:22:53 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-09-25 20:35:13 -0400 |
commit | 7d20b6a2728fe3ea9fa8f4fc49cd438fcc781dd1 (patch) | |
tree | 26013090e91ed8177424426171fc2eab5bf9f2fd /fs/nfsd/vfs.c | |
parent | e0639dc5805a9d4faaa2c07ad98fa853b9529dd3 (diff) |
nfsd: remove set but not used variable 'dirp'
Fixes gcc '-Wunused-but-set-variable' warning:
fs/nfsd/vfs.c: In function 'nfsd_create':
fs/nfsd/vfs.c:1279:16: warning:
variable 'dirp' set but not used [-Wunused-but-set-variable]
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r-- | fs/nfsd/vfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 55a099e47ba2..ddbac8776bd3 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -1275,7 +1275,6 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, | |||
1275 | int type, dev_t rdev, struct svc_fh *resfhp) | 1275 | int type, dev_t rdev, struct svc_fh *resfhp) |
1276 | { | 1276 | { |
1277 | struct dentry *dentry, *dchild = NULL; | 1277 | struct dentry *dentry, *dchild = NULL; |
1278 | struct inode *dirp; | ||
1279 | __be32 err; | 1278 | __be32 err; |
1280 | int host_err; | 1279 | int host_err; |
1281 | 1280 | ||
@@ -1287,7 +1286,6 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, | |||
1287 | return err; | 1286 | return err; |
1288 | 1287 | ||
1289 | dentry = fhp->fh_dentry; | 1288 | dentry = fhp->fh_dentry; |
1290 | dirp = d_inode(dentry); | ||
1291 | 1289 | ||
1292 | host_err = fh_want_write(fhp); | 1290 | host_err = fh_want_write(fhp); |
1293 | if (host_err) | 1291 | if (host_err) |