mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
Staging: gdm72xx: Remove wrapper function put_event_entry
put_event_entry is used only once. Replace it's usage with direct call to list_add_tail(). Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9eded76f51
commit
dcd517db44
1 changed files with 1 additions and 8 deletions
|
|
@ -98,13 +98,6 @@ static struct evt_entry *get_event_entry(void)
|
|||
return e;
|
||||
}
|
||||
|
||||
static void put_event_entry(struct evt_entry *e)
|
||||
{
|
||||
BUG_ON(!e);
|
||||
|
||||
list_add_tail(&e->list, &wm_event.freeq);
|
||||
}
|
||||
|
||||
static void gdm_wimax_event_rcv(struct net_device *dev, u16 type, void *msg,
|
||||
int len)
|
||||
{
|
||||
|
|
@ -137,7 +130,7 @@ static void __gdm_wimax_event_send(struct work_struct *work)
|
|||
|
||||
spin_lock_irqsave(&wm_event.evt_lock, flags);
|
||||
list_del(&e->list);
|
||||
put_event_entry(e);
|
||||
list_add_tail(&e->list, &wm_event.freeq);
|
||||
}
|
||||
|
||||
spin_unlock_irqrestore(&wm_event.evt_lock, flags);
|
||||
|
|
|
|||
Loading…
Reference in a new issue