From: Stefan Richter Date: Sun, 21 Dec 2008 15:49:57 +0000 (+0100) Subject: firewire: cdev: use list_first_entry X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a459b8ab9c176143fecef8ace4b70d6dbd7a8113;p=linux-beck.git firewire: cdev: use list_first_entry Signed-off-by: Stefan Richter --- diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c index 3c075b2eedf9..ead5c7b06ec1 100644 --- a/drivers/firewire/fw-cdev.c +++ b/drivers/firewire/fw-cdev.c @@ -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);