diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-06-25 17:58:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:56 -0400 |
commit | 3e206b0a66fcaf39dbef92640ce6a63d51fc5c53 (patch) | |
tree | 27e2941e1339be892b824434c24af518efd52294 /drivers/isdn/i4l/isdn_concap.c | |
parent | 886cca3a0fda659e17c730c20929134014ebe1f2 (diff) |
[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>
Diffstat (limited to 'drivers/isdn/i4l/isdn_concap.c')
-rw-r--r-- | drivers/isdn/i4l/isdn_concap.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/isdn/i4l/isdn_concap.c b/drivers/isdn/i4l/isdn_concap.c index 83a4f5382bc2..0193b6f7c70c 100644 --- a/drivers/isdn/i4l/isdn_concap.c +++ b/drivers/isdn/i4l/isdn_concap.c | |||
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | 41 | ||
42 | int isdn_concap_dl_data_req(struct concap_proto *concap, struct sk_buff *skb) | 42 | static int isdn_concap_dl_data_req(struct concap_proto *concap, struct sk_buff *skb) |
43 | { | 43 | { |
44 | struct net_device *ndev = concap -> net_dev; | 44 | struct net_device *ndev = concap -> net_dev; |
45 | isdn_net_dev *nd = ((isdn_net_local *) ndev->priv)->netdev; | 45 | 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) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | 60 | ||
61 | int isdn_concap_dl_connect_req(struct concap_proto *concap) | 61 | static int isdn_concap_dl_connect_req(struct concap_proto *concap) |
62 | { | 62 | { |
63 | struct net_device *ndev = concap -> net_dev; | 63 | struct net_device *ndev = concap -> net_dev; |
64 | isdn_net_local *lp = (isdn_net_local *) ndev->priv; | 64 | isdn_net_local *lp = (isdn_net_local *) ndev->priv; |
@@ -71,7 +71,7 @@ int isdn_concap_dl_connect_req(struct concap_proto *concap) | |||
71 | return ret; | 71 | return ret; |
72 | } | 72 | } |
73 | 73 | ||
74 | int isdn_concap_dl_disconn_req(struct concap_proto *concap) | 74 | static int isdn_concap_dl_disconn_req(struct concap_proto *concap) |
75 | { | 75 | { |
76 | IX25DEBUG( "isdn_concap_dl_disconn_req: %s \n", concap -> net_dev -> name); | 76 | IX25DEBUG( "isdn_concap_dl_disconn_req: %s \n", concap -> net_dev -> name); |
77 | 77 | ||
@@ -85,15 +85,6 @@ struct concap_device_ops isdn_concap_reliable_dl_dops = { | |||
85 | &isdn_concap_dl_disconn_req | 85 | &isdn_concap_dl_disconn_req |
86 | }; | 86 | }; |
87 | 87 | ||
88 | struct concap_device_ops isdn_concap_demand_dial_dops = { | ||
89 | NULL, /* set this first entry to something like &isdn_net_start_xmit, | ||
90 | but the entry part of the current isdn_net_start_xmit must be | ||
91 | separated first. */ | ||
92 | /* no connection control for demand dial semantics */ | ||
93 | NULL, | ||
94 | NULL, | ||
95 | }; | ||
96 | |||
97 | /* The following should better go into a dedicated source file such that | 88 | /* The following should better go into a dedicated source file such that |
98 | this sourcefile does not need to include any protocol specific header | 89 | this sourcefile does not need to include any protocol specific header |
99 | files. For now: | 90 | files. For now: |