Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[~shefty/rdma-dev.git] / fs / 9p / fid.c
index 616abaf..d51ec9f 100644 (file)
@@ -72,9 +72,8 @@ static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any)
        /* we'll recheck under lock if there's anything to look in */
        if (dentry->d_fsdata) {
                struct hlist_head *h = (struct hlist_head *)&dentry->d_fsdata;
-               struct hlist_node *n;
                spin_lock(&dentry->d_lock);
-               hlist_for_each_entry(fid, n, h, dlist) {
+               hlist_for_each_entry(fid, h, dlist) {
                        if (any || uid_eq(fid->uid, uid)) {
                                ret = fid;
                                break;