Skip to contentSkip to conversation

NFS: Remove unused argument from nfs_find_best_sec()

PATCH New Bryan Schumaker 1 participant 1 message Apr 12, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 fs/nfs/namespace.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/nfs/namespace.c +2 -2
index 89fc160..1f063ba 100644
@@ -119,7 +119,7 @@ Elong:
 }
 
 #ifdef CONFIG_NFS_V4
-static rpc_authflavor_t nfs_find_best_sec(struct nfs4_secinfo_flavors *flavors, struct inode *inode)
+static rpc_authflavor_t nfs_find_best_sec(struct nfs4_secinfo_flavors *flavors)
 {
 	struct gss_api_mech *mech;
 	struct xdr_netobj oid;
@@ -166,7 +166,7 @@ static int nfs_negotiate_security(const struct dentry *parent,
 		}
 		flavors = page_address(page);
 		ret = secinfo(parent->d_inode, &dentry->d_name, flavors);
-		*flavor = nfs_find_best_sec(flavors, dentry->d_inode);
+		*flavor = nfs_find_best_sec(flavors);
 		put_page(page);
 	}
 
Signature · 1 line
1.7.4.4