]> Pileus Git - ~andy/linux/blobdiff - fs/aio.c
hlist: drop the node parameter from iterators
[~andy/linux] / fs / aio.c
index 064bfbe37566adc715832ebb968b588b9f2d1905..3f941f2a305949f31ba9dce2a4e87f6849e8ab71 100644 (file)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -591,11 +591,10 @@ static struct kioctx *lookup_ioctx(unsigned long ctx_id)
 {
        struct mm_struct *mm = current->mm;
        struct kioctx *ctx, *ret = NULL;
-       struct hlist_node *n;
 
        rcu_read_lock();
 
-       hlist_for_each_entry_rcu(ctx, n, &mm->ioctx_list, list) {
+       hlist_for_each_entry_rcu(ctx, &mm->ioctx_list, list) {
                /*
                 * RCU protects us against accessing freed memory but
                 * we have to be careful not to get a reference when the