firewire: cdev: use list_first_entry

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
Stefan Richter 2008-12-21 16:49:57 +01:00
parent da62df141e
commit a459b8ab9c

View 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);