[PATCH] drivers/isdn/i4l/: possible cleanups
This patch contains the following possible cleanups: - make needlessly global code static - remove the following unused global function: - isdn_audio.c: isdn_audio_2adpcm_flush - remove the following unused struct: - isdn_net.c: isdn_concap_demand_dial_dops 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
886cca3a0f
commit
3e206b0a66
@@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
|
||||
int isdn_concap_dl_data_req(struct concap_proto *concap, struct sk_buff *skb)
|
||||
static int isdn_concap_dl_data_req(struct concap_proto *concap, struct sk_buff *skb)
|
||||
{
|
||||
struct net_device *ndev = concap -> net_dev;
|
||||
isdn_net_dev *nd = ((isdn_net_local *) ndev->priv)->netdev;
|
||||
@@ -58,7 +58,7 @@ int isdn_concap_dl_data_req(struct concap_proto *concap, struct sk_buff *skb)
|
||||
}
|
||||
|
||||
|
||||
int isdn_concap_dl_connect_req(struct concap_proto *concap)
|
||||
static int isdn_concap_dl_connect_req(struct concap_proto *concap)
|
||||
{
|
||||
struct net_device *ndev = concap -> net_dev;
|
||||
isdn_net_local *lp = (isdn_net_local *) ndev->priv;
|
||||
@@ -71,7 +71,7 @@ int isdn_concap_dl_connect_req(struct concap_proto *concap)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int isdn_concap_dl_disconn_req(struct concap_proto *concap)
|
||||
static int isdn_concap_dl_disconn_req(struct concap_proto *concap)
|
||||
{
|
||||
IX25DEBUG( "isdn_concap_dl_disconn_req: %s \n", concap -> net_dev -> name);
|
||||
|
||||
@@ -85,15 +85,6 @@ struct concap_device_ops isdn_concap_reliable_dl_dops = {
|
||||
&isdn_concap_dl_disconn_req
|
||||
};
|
||||
|
||||
struct concap_device_ops isdn_concap_demand_dial_dops = {
|
||||
NULL, /* set this first entry to something like &isdn_net_start_xmit,
|
||||
but the entry part of the current isdn_net_start_xmit must be
|
||||
separated first. */
|
||||
/* no connection control for demand dial semantics */
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
|
||||
/* The following should better go into a dedicated source file such that
|
||||
this sourcefile does not need to include any protocol specific header
|
||||
files. For now:
|
||||
|
Reference in New Issue
Block a user