Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39490
b: refs/heads/master
c: a22b169
h: refs/heads/master
v: v3
  • Loading branch information
Vasily Tarasov authored and Jens Axboe committed Oct 12, 2006
1 parent c4fb99f commit 44cf37e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b1191af683d16a899c2b81b87b605841ceffdec
refs/heads/master: a22b169df1b9f259391cf3b8ad8bfeea3d7be3f1
13 changes: 5 additions & 8 deletions trunk/block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,18 @@ static inline int elv_try_merge(struct request *__rq, struct bio *bio)

static struct elevator_type *elevator_find(const char *name)
{
struct elevator_type *e = NULL;
struct elevator_type *e;
struct list_head *entry;

list_for_each(entry, &elv_list) {
struct elevator_type *__e;

__e = list_entry(entry, struct elevator_type, list);
e = list_entry(entry, struct elevator_type, list);

if (!strcmp(__e->elevator_name, name)) {
e = __e;
break;
}
if (!strcmp(e->elevator_name, name))
return e;
}

return e;
return NULL;
}

static void elevator_put(struct elevator_type *e)
Expand Down

0 comments on commit 44cf37e

Please sign in to comment.