mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue