Commit a459b8ab authored by Stefan Richter's avatar Stefan Richter

firewire: cdev: use list_first_entry

Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent da62df14
...@@ -180,7 +180,7 @@ static int dequeue_event(struct client *client, ...@@ -180,7 +180,7 @@ static int dequeue_event(struct client *client,
return -ENODEV; return -ENODEV;
spin_lock_irqsave(&client->lock, flags); 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); list_del(&event->link);
spin_unlock_irqrestore(&client->lock, flags); spin_unlock_irqrestore(&client->lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment