[PATCH] drivers/isdn/hisax/: possible cleanups
This patch contains the following possible cleanups: - make needlessly global code static - remove the compiled but unused st5481_hdlc.{c,h} - kill enternow.h - enternow_pci.c: kill InByte/OutByte/BYTE - isdnl2.c: kill FreeSkb - remove or #if 0 the following unused functions: - config.c: IsdnCardState - ipacx.c: ipacx_new_ph - ipacx.c: dch_bh - ipacx.c: setup_ipacx - isdnl2.c: IsRR Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: Kai Germaschewski <kai@germaschewski.name> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Este cometimento está contido em:

cometido por
Linus Torvalds

ascendente
8b3d4a2a3e
cometimento
672c3fd906
@@ -332,7 +332,7 @@ struct IsdnCard cards[HISAX_MAX_CARDS] = {
|
||||
#define HISAX_IDSIZE (HISAX_MAX_CARDS*8)
|
||||
static char HiSaxID[HISAX_IDSIZE] = { 0, };
|
||||
|
||||
char *HiSax_id = HiSaxID;
|
||||
static char *HiSax_id = HiSaxID;
|
||||
#ifdef MODULE
|
||||
/* Variables for insmod */
|
||||
static int type[HISAX_MAX_CARDS] = { 0, };
|
||||
@@ -391,7 +391,7 @@ char *HiSax_getrev(const char *revision)
|
||||
return rev;
|
||||
}
|
||||
|
||||
void __init HiSaxVersion(void)
|
||||
static void __init HiSaxVersion(void)
|
||||
{
|
||||
char tmp[64];
|
||||
|
||||
@@ -608,6 +608,7 @@ static inline struct IsdnCardState *hisax_findcard(int driverid)
|
||||
/*
|
||||
* Find card with given card number
|
||||
*/
|
||||
#if 0
|
||||
struct IsdnCardState *hisax_get_card(int cardnr)
|
||||
{
|
||||
if ((cardnr <= nrcards) && (cardnr > 0))
|
||||
@@ -615,8 +616,9 @@ struct IsdnCardState *hisax_get_card(int cardnr)
|
||||
return cards[cardnr - 1].cs;
|
||||
return NULL;
|
||||
}
|
||||
#endif /* 0 */
|
||||
|
||||
int HiSax_readstatus(u_char __user *buf, int len, int id, int channel)
|
||||
static int HiSax_readstatus(u_char __user *buf, int len, int id, int channel)
|
||||
{
|
||||
int count, cnt;
|
||||
u_char __user *p = buf;
|
||||
@@ -768,7 +770,7 @@ int ll_run(struct IsdnCardState *cs, int addfeatures)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ll_stop(struct IsdnCardState *cs)
|
||||
static void ll_stop(struct IsdnCardState *cs)
|
||||
{
|
||||
isdn_ctrl ic;
|
||||
|
||||
@@ -1184,7 +1186,7 @@ static int checkcard(int cardnr, char *id, int *busy_flag, struct module *lockow
|
||||
return ret;
|
||||
}
|
||||
|
||||
void HiSax_shiftcards(int idx)
|
||||
static void HiSax_shiftcards(int idx)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -1192,7 +1194,7 @@ void HiSax_shiftcards(int idx)
|
||||
memcpy(&cards[i], &cards[i + 1], sizeof(cards[i]));
|
||||
}
|
||||
|
||||
int HiSax_inithardware(int *busy_flag)
|
||||
static int HiSax_inithardware(int *busy_flag)
|
||||
{
|
||||
int foundcards = 0;
|
||||
int i = 0;
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador