summaryrefslogtreecommitdiff
path: root/drivers/staging/gdm72xx
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2016-02-17 18:03:38 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-20 15:36:49 -0800
commitdcd517db44e56f211ca1ad977c88735942bd6146 (patch)
treea518bc1e5a9d6ce477f66f2e9d246dfa6d2e6269 /drivers/staging/gdm72xx
parent9eded76f510641c831e02a9112a5e240100aeeef (diff)
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>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r--drivers/staging/gdm72xx/gdm_wimax.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/staging/gdm72xx/gdm_wimax.c b/drivers/staging/gdm72xx/gdm_wimax.c
index 859880cd6139..2ee6a392173d 100644
--- a/drivers/staging/gdm72xx/gdm_wimax.c
+++ b/drivers/staging/gdm72xx/gdm_wimax.c
@@ -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);