Skip to content

Commit 561f0b0

Browse files
Bryan SchumakerTrond Myklebust
authored andcommitted
NFS: Remove unused argument from nfs_find_best_sec()
The inode was used in an earlier version of the code, but it isn't used anymore. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent 4b38a6d commit 561f0b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/nfs/namespace.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ char *nfs_path(char **p, struct dentry *dentry, char *buffer, ssize_t buflen)
119119
}
120120

121121
#ifdef CONFIG_NFS_V4
122-
static rpc_authflavor_t nfs_find_best_sec(struct nfs4_secinfo_flavors *flavors, struct inode *inode)
122+
static rpc_authflavor_t nfs_find_best_sec(struct nfs4_secinfo_flavors *flavors)
123123
{
124124
struct gss_api_mech *mech;
125125
struct xdr_netobj oid;
@@ -166,7 +166,7 @@ static int nfs_negotiate_security(const struct dentry *parent,
166166
}
167167
flavors = page_address(page);
168168
ret = secinfo(parent->d_inode, &dentry->d_name, flavors);
169-
*flavor = nfs_find_best_sec(flavors, dentry->d_inode);
169+
*flavor = nfs_find_best_sec(flavors);
170170
put_page(page);
171171
}
172172

0 commit comments

Comments
 (0)