]> Pileus Git - ~andy/linux/blobdiff - block/elevator.c
hlist: drop the node parameter from iterators
[~andy/linux] / block / elevator.c
index 603b2c178740afd4bcc047faed6e1314e30591a8..d0acb31cc083fca5340b9f719e0ec640607ce1eb 100644 (file)
@@ -288,10 +288,10 @@ static struct request *elv_rqhash_find(struct request_queue *q, sector_t offset)
 {
        struct elevator_queue *e = q->elevator;
        struct hlist_head *hash_list = &e->hash[ELV_HASH_FN(offset)];
-       struct hlist_node *entry, *next;
+       struct hlist_node *next;
        struct request *rq;
 
-       hlist_for_each_entry_safe(rq, entry, next, hash_list, hash) {
+       hlist_for_each_entry_safe(rq, next, hash_list, hash) {
                BUG_ON(!ELV_ON_HASH(rq));
 
                if (unlikely(!rq_mergeable(rq))) {