[PATCH v4 4/4] Staging: gdm72xx: Remove wrapper function put_event_entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
Changes in v4-
 Deleted the function
Changes in v3-
 Removed BUG_ON
Changes in v2-
 No change

 drivers/staging/gdm72xx/gdm_wimax.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/drivers/staging/gdm72xx/gdm_wimax.c b/drivers/staging/gdm72xx/gdm_wimax.c
index 859880c..2ee6a39 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);
-- 
2.1.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux