mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-24 22:55:35 +08:00
firewire: cdev: use list_first_entry
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
da62df141e
commit
a459b8ab9c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user