]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
firewire: cdev: use list_first_entry
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 21 Dec 2008 15:49:57 +0000 (16:49 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 24 Mar 2009 19:56:41 +0000 (20:56 +0100)
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-cdev.c

index 3c075b2eedf94be31fde6850abdc295b2d3e780a..ead5c7b06ec10a2a5af6b9f9096712f86d07ab6a 100644 (file)
@@ -180,7 +180,7 @@ static int dequeue_event(struct client *client,
                return -ENODEV;
 
        spin_lock_irqsave(&client->lock, flags);
-       event = container_of(client->event_list.next, struct event, link);
+       event = list_first_entry(&client->event_list, struct event, link);
        list_del(&event->link);
        spin_unlock_irqrestore(&client->lock, flags);