]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: comedi: s626: Remove all unused functions
authorBhumika Goyal <bhumirks@gmail.com>
Thu, 15 Sep 2016 20:39:08 +0000 (02:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Sep 2016 08:27:52 +0000 (10:27 +0200)
commitfe5cc9e66732b6e093f7fe758a53682a5b4217b0
tree7acb5df111be00642715b434535565314651aca7
parentd811f410ccd36fa9eb7e15acd943082504203ba6
Staging: comedi: s626: Remove all unused functions

Remove all #ifdef'ed static functions as they are not used anywhere
in the kernel. Some functions were detected using Coccinelle but removed by
hand and some were removed as the functions in which they were getting
used were also unused functions.
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)

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s626.c