]> 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)
commit709bff996ef406dd76223efef6ab14c729533453
tree7acb5df111be00642715b434535565314651aca7
parent910735bfdcf327876503c58e25fe8c4483bd7a75
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