firewire: cdev: use list_first_entry
Stefan Richter [Sun, 21 Dec 2008 15:49:57 +0000 (16:49 +0100)]
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

drivers/firewire/fw-cdev.c

index 3c075b2..ead5c7b 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);