[PATCH] drivers/isdn/pcbit/: possible cleanups
This patch contains the following possible cleanups: - make some needlessly global functions static - remove the following unused global functions: - callbacks.c: cb_out_3 - capi.c: capi_decode_disc_conf Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
e3ca5e762c
commit
886cca3a0f
@@ -56,10 +56,10 @@ static char* pcbit_devname[MAX_PCBIT_CARDS] = {
|
||||
* prototypes
|
||||
*/
|
||||
|
||||
int pcbit_command(isdn_ctrl* ctl);
|
||||
int pcbit_stat(u_char __user * buf, int len, int, int);
|
||||
int pcbit_xmit(int driver, int chan, int ack, struct sk_buff *skb);
|
||||
int pcbit_writecmd(const u_char __user *, int, int, int);
|
||||
static int pcbit_command(isdn_ctrl* ctl);
|
||||
static int pcbit_stat(u_char __user * buf, int len, int, int);
|
||||
static int pcbit_xmit(int driver, int chan, int ack, struct sk_buff *skb);
|
||||
static int pcbit_writecmd(const u_char __user *, int, int, int);
|
||||
|
||||
static int set_protocol_running(struct pcbit_dev * dev);
|
||||
|
||||
@@ -238,7 +238,7 @@ void pcbit_terminate(int board)
|
||||
}
|
||||
#endif
|
||||
|
||||
int pcbit_command(isdn_ctrl* ctl)
|
||||
static int pcbit_command(isdn_ctrl* ctl)
|
||||
{
|
||||
struct pcbit_dev *dev;
|
||||
struct pcbit_chan *chan;
|
||||
@@ -330,7 +330,7 @@ static void pcbit_block_timer(unsigned long data)
|
||||
}
|
||||
#endif
|
||||
|
||||
int pcbit_xmit(int driver, int chnum, int ack, struct sk_buff *skb)
|
||||
static int pcbit_xmit(int driver, int chnum, int ack, struct sk_buff *skb)
|
||||
{
|
||||
ushort hdrlen;
|
||||
int refnum, len;
|
||||
@@ -389,7 +389,7 @@ int pcbit_xmit(int driver, int chnum, int ack, struct sk_buff *skb)
|
||||
return len;
|
||||
}
|
||||
|
||||
int pcbit_writecmd(const u_char __user *buf, int len, int driver, int channel)
|
||||
static int pcbit_writecmd(const u_char __user *buf, int len, int driver, int channel)
|
||||
{
|
||||
struct pcbit_dev * dev;
|
||||
int i, j;
|
||||
@@ -713,7 +713,7 @@ static char statbuf[STATBUF_LEN];
|
||||
static int stat_st = 0;
|
||||
static int stat_end = 0;
|
||||
|
||||
int pcbit_stat(u_char __user *buf, int len, int driver, int channel)
|
||||
static int pcbit_stat(u_char __user *buf, int len, int driver, int channel)
|
||||
{
|
||||
int stat_count;
|
||||
stat_count = stat_end - stat_st;
|
||||
|
Reference in New Issue
Block a user