]> git.karo-electronics.de Git - linux-beck.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)
commit521865a8c9a8d4a189355339457d96b62699eb35
tree7acb5df111be00642715b434535565314651aca7
parent52edd01ffdc094465906f34ba78aec0bc0f2eedc
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