Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136016
b: refs/heads/master
c: 81610b8
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Mar 24, 2009
1 parent af473e5 commit 030265d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 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: 5d9cb7d276a9c465fef5a771792eac2cf1929f2b
refs/heads/master: 81610b8fbfc027a67707ff567d490819a3d55844
18 changes: 6 additions & 12 deletions trunk/drivers/firewire/fw-cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct iso_resource {
struct iso_resource_event *e_alloc, *e_dealloc;
};

static int schedule_iso_resource(struct iso_resource *);
static void schedule_iso_resource(struct iso_resource *);
static void release_iso_resource(struct client *, struct client_resource *);

/*
Expand Down Expand Up @@ -1111,17 +1111,11 @@ static void iso_resource_work(struct work_struct *work)
client_put(client);
}

static int schedule_iso_resource(struct iso_resource *r)
static void schedule_iso_resource(struct iso_resource *r)
{
int scheduled;

client_get(r->client);

scheduled = schedule_delayed_work(&r->work, 0);
if (!scheduled)
if (!schedule_delayed_work(&r->work, 0))
client_put(r->client);

return scheduled;
}

static void release_iso_resource(struct client *client,
Expand Down Expand Up @@ -1173,13 +1167,13 @@ static int init_iso_resource(struct client *client,
if (todo == ISO_RES_ALLOC) {
r->resource.release = release_iso_resource;
ret = add_client_resource(client, &r->resource, GFP_KERNEL);
if (ret < 0)
goto fail;
} else {
r->resource.release = NULL;
r->resource.handle = -1;
ret = schedule_iso_resource(r) ? 0 : -ENOMEM;
schedule_iso_resource(r);
}
if (ret < 0)
goto fail;
request->handle = r->resource.handle;

return 0;
Expand Down

0 comments on commit 030265d

Please sign in to comment.