Skip to content

Commit 7d20b6a

Browse files
YueHaibingJ. Bruce Fields
authored andcommitted
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>
1 parent e0639dc commit 7d20b6a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/nfsd/vfs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,6 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
12751275
int type, dev_t rdev, struct svc_fh *resfhp)
12761276
{
12771277
struct dentry *dentry, *dchild = NULL;
1278-
struct inode *dirp;
12791278
__be32 err;
12801279
int host_err;
12811280

@@ -1287,7 +1286,6 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
12871286
return err;
12881287

12891288
dentry = fhp->fh_dentry;
1290-
dirp = d_inode(dentry);
12911289

12921290
host_err = fh_want_write(fhp);
12931291
if (host_err)

0 commit comments

Comments
 (0)