aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2008-12-21 10:49:57 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2009-03-24 15:56:41 -0400
commita459b8ab9c176143fecef8ace4b70d6dbd7a8113 (patch)
tree2c1faebb488f692b8f0bb7d075cb347099851164
parentda62df141e3f879445e3daef36bd3a12c90841e2 (diff)
firewire: cdev: use list_first_entry
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
-rw-r--r--drivers/firewire/fw-cdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c
index 3c075b2eedf..ead5c7b06ec 100644
--- a/drivers/firewire/fw-cdev.c
+++ b/drivers/firewire/fw-cdev.c
@@ -180,7 +180,7 @@ static int dequeue_event(struct client *client,
180 return -ENODEV; 180 return -ENODEV;
181 181
182 spin_lock_irqsave(&client->lock, flags); 182 spin_lock_irqsave(&client->lock, flags);
183 event = container_of(client->event_list.next, struct event, link); 183 event = list_first_entry(&client->event_list, struct event, link);
184 list_del(&event->link); 184 list_del(&event->link);
185 spin_unlock_irqrestore(&client->lock, flags); 185 spin_unlock_irqrestore(&client->lock, flags);
186 186