diff options
author | Bhumika Goyal | 2016-10-06 20:02:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-10-16 10:24:51 +0200 |
commit | 340c0469911cb8394d62399d6fcf6f94e30fe2f4 (patch) | |
tree | b86a78898e25a6e6d5cf51b68bd25b21bb28cb4b /drivers/staging/rtl8712/rtl871x_xmit.h | |
parent | Staging: rtl8192e: rtl_core: Constify rtllib_qos_parameters structures (diff) | |
download | kernel-qcow2-linux-340c0469911cb8394d62399d6fcf6f94e30fe2f4.tar.gz kernel-qcow2-linux-340c0469911cb8394d62399d6fcf6f94e30fe2f4.tar.xz kernel-qcow2-linux-340c0469911cb8394d62399d6fcf6f94e30fe2f4.zip |
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>
Diffstat (limited to 'drivers/staging/rtl8712/rtl871x_xmit.h')
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_xmit.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_xmit.h b/drivers/staging/rtl8712/rtl871x_xmit.h index d899d0c6d3a6..40927277f498 100644 --- a/drivers/staging/rtl8712/rtl871x_xmit.h +++ b/drivers/staging/rtl8712/rtl871x_xmit.h @@ -261,12 +261,6 @@ struct xmit_priv { uint free_xmitbuf_cnt; }; -static inline struct __queue *get_free_xmit_queue( - struct xmit_priv *pxmitpriv) -{ - return &(pxmitpriv->free_xmit_queue); -} - int r8712_free_xmitbuf(struct xmit_priv *pxmitpriv, struct xmit_buf *pxmitbuf); struct xmit_buf *r8712_alloc_xmitbuf(struct xmit_priv *pxmitpriv); |