提交 e1fec539 编写于 作者: A Amitoj Kaur Chawla 提交者: Greg Kroah-Hartman

staging: gdm72xx: Remove wrapper function

Remove wrapper function that can be replaced by a single line of code.
Signed-off-by: NAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d2071984
...@@ -84,11 +84,6 @@ static inline struct evt_entry *alloc_event_entry(void) ...@@ -84,11 +84,6 @@ static inline struct evt_entry *alloc_event_entry(void)
return kmalloc(sizeof(struct evt_entry), GFP_ATOMIC); return kmalloc(sizeof(struct evt_entry), GFP_ATOMIC);
} }
static inline void free_event_entry(struct evt_entry *e)
{
kfree(e);
}
static struct evt_entry *get_event_entry(void) static struct evt_entry *get_event_entry(void)
{ {
struct evt_entry *e; struct evt_entry *e;
...@@ -180,11 +175,11 @@ static void gdm_wimax_event_exit(void) ...@@ -180,11 +175,11 @@ static void gdm_wimax_event_exit(void)
list_for_each_entry_safe(e, temp, &wm_event.evtq, list) { list_for_each_entry_safe(e, temp, &wm_event.evtq, list) {
list_del(&e->list); list_del(&e->list);
free_event_entry(e); kfree(e);
} }
list_for_each_entry_safe(e, temp, &wm_event.freeq, list) { list_for_each_entry_safe(e, temp, &wm_event.freeq, list) {
list_del(&e->list); list_del(&e->list);
free_event_entry(e); kfree(e);
} }
spin_unlock_irqrestore(&wm_event.evt_lock, flags); spin_unlock_irqrestore(&wm_event.evt_lock, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册