Skip to contentSkip to conversation

Staging: vc04_services: vchiq_arm: Remove unused function remote_event_destroy

PATCH New Bhumika Goyal 1 participant 1 message Oct 6, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: vc04_services: vchiq_arm: Remove unused function remote_event_destroy

Remove function remote_event_destroy as it is not used anywhere in the kernel. Function detected using Coccinelle but changes done by hand. Script:

@initialize:python@
@@
def display(name,p):

        print(name,p[0].file)

@r1@
identifier func;
type T;
position p;
@@
static T func@p(...)
{
...
}

@r@
identifier r1.func;
@@
func

@script:python depends on !r@
func << r1.func;
p << r1.p;
@@
display(func,p)

---
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +0 -6
index 2c98da4..7ed3277 100644
@@ -414,12 +414,6 @@ remote_event_create(REMOTE_EVENT_T *event)
 	sema_init(event->event, 0);
 }
 
-static inline void
-remote_event_destroy(REMOTE_EVENT_T *event)
-{
-	(void)event;
-}
-
 static inline int
 remote_event_wait(REMOTE_EVENT_T *event)
 {
Signature · 1 line
1.9.1