Staging: rtl8712: remove unused functions
authorBhumika Goyal <bhumirks@gmail.com>
Thu, 6 Oct 2016 18:02:20 +0000 (23:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:24:51 +0000 (10:24 +0200)
commit340c0469911cb8394d62399d6fcf6f94e30fe2f4
treeb86a78898e25a6e6d5cf51b68bd25b21bb28cb4b
parent67f9dcb155875864ccaf74625a7c702e6d07ab31
Staging: rtl8712: remove unused functions

Remove the functions sleep_schedulable, down_scanned_network,
up_scanned_network and get_free_xmit_queue as they are not used anywhere
in the kernel. Functions 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)

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/osdep_service.h
drivers/staging/rtl8712/rtl871x_mlme.h
drivers/staging/rtl8712/rtl871x_xmit.h