aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/i4l
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2005-06-25 17:58:35 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 19:24:56 -0400
commit3e206b0a66fcaf39dbef92640ce6a63d51fc5c53 (patch)
tree27e2941e1339be892b824434c24af518efd52294 /drivers/isdn/i4l
parent886cca3a0fda659e17c730c20929134014ebe1f2 (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')
-rw-r--r--drivers/isdn/i4l/isdn_audio.c10
-rw-r--r--drivers/isdn/i4l/isdn_audio.h1
-rw-r--r--drivers/isdn/i4l/isdn_common.c6
-rw-r--r--drivers/isdn/i4l/isdn_common.h1
-rw-r--r--drivers/isdn/i4l/isdn_concap.c15
-rw-r--r--drivers/isdn/i4l/isdn_concap.h1
-rw-r--r--drivers/isdn/i4l/isdn_net.c10
-rw-r--r--drivers/isdn/i4l/isdn_tty.c4
-rw-r--r--drivers/isdn/i4l/isdn_tty.h1
-rw-r--r--drivers/isdn/i4l/isdn_ttyfax.c6
-rw-r--r--drivers/isdn/i4l/isdn_x25iface.c36
11 files changed, 34 insertions, 57 deletions
diff --git a/drivers/isdn/i4l/isdn_audio.c b/drivers/isdn/i4l/isdn_audio.c
index 5350836a4f98..2cc56d6a9fae 100644
--- a/drivers/isdn/i4l/isdn_audio.c
+++ b/drivers/isdn/i4l/isdn_audio.c
@@ -392,16 +392,6 @@ isdn_audio_adpcm2xlaw(adpcm_state * s, int fmt, unsigned char *in,
392} 392}
393 393
394int 394int
395isdn_audio_2adpcm_flush(adpcm_state * s, unsigned char *out)
396{
397 int olen = 0;
398
399 if (s->nleft)
400 isdn_audio_put_bits(0, 8 - s->nleft, s, &out, &olen);
401 return olen;
402}
403
404int
405isdn_audio_xlaw2adpcm(adpcm_state * s, int fmt, unsigned char *in, 395isdn_audio_xlaw2adpcm(adpcm_state * s, int fmt, unsigned char *in,
406 unsigned char *out, int len) 396 unsigned char *out, int len)
407{ 397{
diff --git a/drivers/isdn/i4l/isdn_audio.h b/drivers/isdn/i4l/isdn_audio.h
index 5a977b21dcfa..013c3582e0d1 100644
--- a/drivers/isdn/i4l/isdn_audio.h
+++ b/drivers/isdn/i4l/isdn_audio.h
@@ -35,7 +35,6 @@ extern void isdn_audio_alaw2ulaw(unsigned char *, unsigned long);
35extern adpcm_state *isdn_audio_adpcm_init(adpcm_state *, int); 35extern adpcm_state *isdn_audio_adpcm_init(adpcm_state *, int);
36extern int isdn_audio_adpcm2xlaw(adpcm_state *, int, unsigned char *, unsigned char *, int); 36extern int isdn_audio_adpcm2xlaw(adpcm_state *, int, unsigned char *, unsigned char *, int);
37extern int isdn_audio_xlaw2adpcm(adpcm_state *, int, unsigned char *, unsigned char *, int); 37extern int isdn_audio_xlaw2adpcm(adpcm_state *, int, unsigned char *, unsigned char *, int);
38extern int isdn_audio_2adpcm_flush(adpcm_state * s, unsigned char *out);
39extern void isdn_audio_calc_dtmf(modem_info *, unsigned char *, int, int); 38extern void isdn_audio_calc_dtmf(modem_info *, unsigned char *, int, int);
40extern void isdn_audio_eval_dtmf(modem_info *); 39extern void isdn_audio_eval_dtmf(modem_info *);
41dtmf_state *isdn_audio_dtmf_init(dtmf_state *); 40dtmf_state *isdn_audio_dtmf_init(dtmf_state *);
diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c
index c406df6f268a..eebcb0b97f0e 100644
--- a/drivers/isdn/i4l/isdn_common.c
+++ b/drivers/isdn/i4l/isdn_common.c
@@ -67,7 +67,7 @@ static isdn_divert_if *divert_if; /* = NULL */
67static int isdn_writebuf_stub(int, int, const u_char __user *, int); 67static int isdn_writebuf_stub(int, int, const u_char __user *, int);
68static void set_global_features(void); 68static void set_global_features(void);
69static int isdn_wildmat(char *s, char *p); 69static int isdn_wildmat(char *s, char *p);
70 70static int isdn_add_channels(isdn_driver_t *d, int drvidx, int n, int adding);
71 71
72static inline void 72static inline void
73isdn_lock_driver(isdn_driver_t *drv) 73isdn_lock_driver(isdn_driver_t *drv)
@@ -388,7 +388,7 @@ isdn_all_eaz(int di, int ch)
388 */ 388 */
389#include <linux/isdn/capicmd.h> 389#include <linux/isdn/capicmd.h>
390 390
391int 391static int
392isdn_capi_rec_hl_msg(capi_msg *cm) { 392isdn_capi_rec_hl_msg(capi_msg *cm) {
393 393
394 int di; 394 int di;
@@ -1923,7 +1923,7 @@ isdn_writebuf_skb_stub(int drvidx, int chan, int ack, struct sk_buff *skb)
1923 return ret; 1923 return ret;
1924} 1924}
1925 1925
1926int 1926static int
1927isdn_add_channels(isdn_driver_t *d, int drvidx, int n, int adding) 1927isdn_add_channels(isdn_driver_t *d, int drvidx, int n, int adding)
1928{ 1928{
1929 int j, k, m; 1929 int j, k, m;
diff --git a/drivers/isdn/i4l/isdn_common.h b/drivers/isdn/i4l/isdn_common.h
index 808135c427ad..e27e9c3a81ed 100644
--- a/drivers/isdn/i4l/isdn_common.h
+++ b/drivers/isdn/i4l/isdn_common.h
@@ -41,7 +41,6 @@ extern int isdn_get_free_channel(int, int, int, int, int, char *);
41extern int isdn_writebuf_skb_stub(int, int, int, struct sk_buff *); 41extern int isdn_writebuf_skb_stub(int, int, int, struct sk_buff *);
42extern int register_isdn(isdn_if * i); 42extern int register_isdn(isdn_if * i);
43extern int isdn_msncmp( const char *, const char *); 43extern int isdn_msncmp( const char *, const char *);
44extern int isdn_add_channels(isdn_driver_t *, int, int, int);
45#if defined(ISDN_DEBUG_NET_DUMP) || defined(ISDN_DEBUG_MODEM_DUMP) 44#if defined(ISDN_DEBUG_NET_DUMP) || defined(ISDN_DEBUG_MODEM_DUMP)
46extern void isdn_dumppkt(char *, u_char *, int, int); 45extern void isdn_dumppkt(char *, u_char *, int, int);
47#endif 46#endif
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
42int isdn_concap_dl_data_req(struct concap_proto *concap, struct sk_buff *skb) 42static 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
61int isdn_concap_dl_connect_req(struct concap_proto *concap) 61static 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
74int isdn_concap_dl_disconn_req(struct concap_proto *concap) 74static 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
88struct 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:
diff --git a/drivers/isdn/i4l/isdn_concap.h b/drivers/isdn/i4l/isdn_concap.h
index 306eb180438f..6ac7e0445ea5 100644
--- a/drivers/isdn/i4l/isdn_concap.h
+++ b/drivers/isdn/i4l/isdn_concap.h
@@ -8,7 +8,6 @@
8 */ 8 */
9 9
10extern struct concap_device_ops isdn_concap_reliable_dl_dops; 10extern struct concap_device_ops isdn_concap_reliable_dl_dops;
11extern struct concap_device_ops isdn_concap_demand_dial_dops;
12extern struct concap_proto * isdn_concap_new( int ); 11extern struct concap_proto * isdn_concap_new( int );
13 12
14 13
diff --git a/drivers/isdn/i4l/isdn_net.c b/drivers/isdn/i4l/isdn_net.c
index e2b790e34510..f30e8e63ae0d 100644
--- a/drivers/isdn/i4l/isdn_net.c
+++ b/drivers/isdn/i4l/isdn_net.c
@@ -176,7 +176,7 @@ static __inline__ void isdn_net_zero_frame_cnt(isdn_net_local *lp)
176 176
177/* Prototypes */ 177/* Prototypes */
178 178
179int isdn_net_force_dial_lp(isdn_net_local *); 179static int isdn_net_force_dial_lp(isdn_net_local *);
180static int isdn_net_start_xmit(struct sk_buff *, struct net_device *); 180static int isdn_net_start_xmit(struct sk_buff *, struct net_device *);
181 181
182static void isdn_net_ciscohdlck_connected(isdn_net_local *lp); 182static void isdn_net_ciscohdlck_connected(isdn_net_local *lp);
@@ -312,7 +312,7 @@ isdn_net_unbind_channel(isdn_net_local * lp)
312 * Since this function is called every second, simply reset the 312 * Since this function is called every second, simply reset the
313 * byte-counter of the interface after copying it to the cps-variable. 313 * byte-counter of the interface after copying it to the cps-variable.
314 */ 314 */
315unsigned long last_jiffies = -HZ; 315static unsigned long last_jiffies = -HZ;
316 316
317void 317void
318isdn_net_autohup(void) 318isdn_net_autohup(void)
@@ -1131,7 +1131,7 @@ isdn_net_adjust_hdr(struct sk_buff *skb, struct net_device *dev)
1131} 1131}
1132 1132
1133 1133
1134void isdn_net_tx_timeout(struct net_device * ndev) 1134static void isdn_net_tx_timeout(struct net_device * ndev)
1135{ 1135{
1136 isdn_net_local *lp = (isdn_net_local *) ndev->priv; 1136 isdn_net_local *lp = (isdn_net_local *) ndev->priv;
1137 1137
@@ -1424,7 +1424,7 @@ isdn_net_ciscohdlck_alloc_skb(isdn_net_local *lp, int len)
1424} 1424}
1425 1425
1426/* cisco hdlck device private ioctls */ 1426/* cisco hdlck device private ioctls */
1427int 1427static int
1428isdn_ciscohdlck_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) 1428isdn_ciscohdlck_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
1429{ 1429{
1430 isdn_net_local *lp = (isdn_net_local *) dev->priv; 1430 isdn_net_local *lp = (isdn_net_local *) dev->priv;
@@ -2461,7 +2461,7 @@ isdn_net_findif(char *name)
2461 * This is called from the userlevel-routine below or 2461 * This is called from the userlevel-routine below or
2462 * from isdn_net_start_xmit(). 2462 * from isdn_net_start_xmit().
2463 */ 2463 */
2464int 2464static int
2465isdn_net_force_dial_lp(isdn_net_local * lp) 2465isdn_net_force_dial_lp(isdn_net_local * lp)
2466{ 2466{
2467 if ((!(lp->flags & ISDN_NET_CONNECTED)) && !lp->dialstate) { 2467 if ((!(lp->flags & ISDN_NET_CONNECTED)) && !lp->dialstate) {
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c
index e21007eca0f0..ad5aa38fb5a6 100644
--- a/drivers/isdn/i4l/isdn_tty.c
+++ b/drivers/isdn/i4l/isdn_tty.c
@@ -273,7 +273,7 @@ isdn_tty_rcv_skb(int i, int di, int channel, struct sk_buff *skb)
273 return 1; 273 return 1;
274} 274}
275 275
276void 276static void
277isdn_tty_cleanup_xmit(modem_info * info) 277isdn_tty_cleanup_xmit(modem_info * info)
278{ 278{
279 skb_queue_purge(&info->xmit_queue); 279 skb_queue_purge(&info->xmit_queue);
@@ -560,7 +560,7 @@ isdn_tty_modem_ncarrier(modem_info * info)
560/* 560/*
561 * return the usage calculated by si and layer 2 protocol 561 * return the usage calculated by si and layer 2 protocol
562 */ 562 */
563int 563static int
564isdn_calc_usage(int si, int l2) 564isdn_calc_usage(int si, int l2)
565{ 565{
566 int usg = ISDN_USAGE_MODEM; 566 int usg = ISDN_USAGE_MODEM;
diff --git a/drivers/isdn/i4l/isdn_tty.h b/drivers/isdn/i4l/isdn_tty.h
index 2423a7ff0cc3..9f0fa9501f4d 100644
--- a/drivers/isdn/i4l/isdn_tty.h
+++ b/drivers/isdn/i4l/isdn_tty.h
@@ -109,7 +109,6 @@ extern int isdn_tty_modem_init(void);
109extern void isdn_tty_exit(void); 109extern void isdn_tty_exit(void);
110extern void isdn_tty_readmodem(void); 110extern void isdn_tty_readmodem(void);
111extern int isdn_tty_find_icall(int, int, setup_parm *); 111extern int isdn_tty_find_icall(int, int, setup_parm *);
112extern void isdn_tty_cleanup_xmit(modem_info *);
113extern int isdn_tty_stat_callback(int, isdn_ctrl *); 112extern int isdn_tty_stat_callback(int, isdn_ctrl *);
114extern int isdn_tty_rcv_skb(int, int, int, struct sk_buff *); 113extern int isdn_tty_rcv_skb(int, int, int, struct sk_buff *);
115extern int isdn_tty_capi_facility(capi_msg *cm); 114extern int isdn_tty_capi_facility(capi_msg *cm);
diff --git a/drivers/isdn/i4l/isdn_ttyfax.c b/drivers/isdn/i4l/isdn_ttyfax.c
index ce2c3ef92e46..a943d078bacc 100644
--- a/drivers/isdn/i4l/isdn_ttyfax.c
+++ b/drivers/isdn/i4l/isdn_ttyfax.c
@@ -148,7 +148,7 @@ isdn_tty_fax_modem_result(int code, modem_info * info)
148 } 148 }
149} 149}
150 150
151int 151static int
152isdn_tty_fax_command1(modem_info * info, isdn_ctrl * c) 152isdn_tty_fax_command1(modem_info * info, isdn_ctrl * c)
153{ 153{
154 static char *msg[] = 154 static char *msg[] =
@@ -316,7 +316,7 @@ isdn_tty_fax_bitorder(modem_info * info, struct sk_buff *skb)
316 * Parse AT+F.. FAX class 1 commands 316 * Parse AT+F.. FAX class 1 commands
317 */ 317 */
318 318
319int 319static int
320isdn_tty_cmd_FCLASS1(char **p, modem_info * info) 320isdn_tty_cmd_FCLASS1(char **p, modem_info * info)
321{ 321{
322 static char *cmd[] = 322 static char *cmd[] =
@@ -408,7 +408,7 @@ isdn_tty_cmd_FCLASS1(char **p, modem_info * info)
408 * Parse AT+F.. FAX class 2 commands 408 * Parse AT+F.. FAX class 2 commands
409 */ 409 */
410 410
411int 411static int
412isdn_tty_cmd_FCLASS2(char **p, modem_info * info) 412isdn_tty_cmd_FCLASS2(char **p, modem_info * info)
413{ 413{
414 atemu *m = &info->emu; 414 atemu *m = &info->emu;
diff --git a/drivers/isdn/i4l/isdn_x25iface.c b/drivers/isdn/i4l/isdn_x25iface.c
index 4ab7600cf9c1..edf14a2aa3c8 100644
--- a/drivers/isdn/i4l/isdn_x25iface.c
+++ b/drivers/isdn/i4l/isdn_x25iface.c
@@ -40,15 +40,15 @@ typedef struct isdn_x25iface_proto_data {
40 40
41 41
42/* is now in header file (extern): struct concap_proto * isdn_x25iface_proto_new(void); */ 42/* is now in header file (extern): struct concap_proto * isdn_x25iface_proto_new(void); */
43void isdn_x25iface_proto_del( struct concap_proto * ); 43static void isdn_x25iface_proto_del( struct concap_proto * );
44int isdn_x25iface_proto_close( struct concap_proto * ); 44static int isdn_x25iface_proto_close( struct concap_proto * );
45int isdn_x25iface_proto_restart( struct concap_proto *, 45static int isdn_x25iface_proto_restart( struct concap_proto *,
46 struct net_device *, 46 struct net_device *,
47 struct concap_device_ops *); 47 struct concap_device_ops *);
48int isdn_x25iface_xmit( struct concap_proto *, struct sk_buff * ); 48static int isdn_x25iface_xmit( struct concap_proto *, struct sk_buff * );
49int isdn_x25iface_receive( struct concap_proto *, struct sk_buff * ); 49static int isdn_x25iface_receive( struct concap_proto *, struct sk_buff * );
50int isdn_x25iface_connect_ind( struct concap_proto * ); 50static int isdn_x25iface_connect_ind( struct concap_proto * );
51int isdn_x25iface_disconn_ind( struct concap_proto * ); 51static int isdn_x25iface_disconn_ind( struct concap_proto * );
52 52
53 53
54static struct concap_proto_ops ix25_pops = { 54static struct concap_proto_ops ix25_pops = {
@@ -102,7 +102,7 @@ struct concap_proto * isdn_x25iface_proto_new(void)
102 102
103/* close the x25iface encapsulation protocol 103/* close the x25iface encapsulation protocol
104 */ 104 */
105int isdn_x25iface_proto_close(struct concap_proto *cprot){ 105static int isdn_x25iface_proto_close(struct concap_proto *cprot){
106 106
107 ix25_pdata_t *tmp; 107 ix25_pdata_t *tmp;
108 int ret = 0; 108 int ret = 0;
@@ -129,7 +129,7 @@ int isdn_x25iface_proto_close(struct concap_proto *cprot){
129 129
130/* Delete the x25iface encapsulation protocol instance 130/* Delete the x25iface encapsulation protocol instance
131 */ 131 */
132void isdn_x25iface_proto_del(struct concap_proto *cprot){ 132static void isdn_x25iface_proto_del(struct concap_proto *cprot){
133 133
134 ix25_pdata_t * tmp; 134 ix25_pdata_t * tmp;
135 135
@@ -158,9 +158,9 @@ void isdn_x25iface_proto_del(struct concap_proto *cprot){
158 158
159/* (re-)initialize the data structures for x25iface encapsulation 159/* (re-)initialize the data structures for x25iface encapsulation
160 */ 160 */
161int isdn_x25iface_proto_restart(struct concap_proto *cprot, 161static int isdn_x25iface_proto_restart(struct concap_proto *cprot,
162 struct net_device *ndev, 162 struct net_device *ndev,
163 struct concap_device_ops *dops) 163 struct concap_device_ops *dops)
164{ 164{
165 ix25_pdata_t * pda = cprot -> proto_data ; 165 ix25_pdata_t * pda = cprot -> proto_data ;
166 ulong flags; 166 ulong flags;
@@ -187,7 +187,7 @@ int isdn_x25iface_proto_restart(struct concap_proto *cprot,
187 187
188/* deliver a dl_data frame received from i4l HL driver to the network layer 188/* deliver a dl_data frame received from i4l HL driver to the network layer
189 */ 189 */
190int isdn_x25iface_receive(struct concap_proto *cprot, struct sk_buff *skb) 190static int isdn_x25iface_receive(struct concap_proto *cprot, struct sk_buff *skb)
191{ 191{
192 IX25DEBUG( "isdn_x25iface_receive %s \n", MY_DEVNAME(cprot->net_dev) ); 192 IX25DEBUG( "isdn_x25iface_receive %s \n", MY_DEVNAME(cprot->net_dev) );
193 if ( ( (ix25_pdata_t*) (cprot->proto_data) ) 193 if ( ( (ix25_pdata_t*) (cprot->proto_data) )
@@ -206,7 +206,7 @@ int isdn_x25iface_receive(struct concap_proto *cprot, struct sk_buff *skb)
206 206
207/* a connection set up is indicated by lower layer 207/* a connection set up is indicated by lower layer
208 */ 208 */
209int isdn_x25iface_connect_ind(struct concap_proto *cprot) 209static int isdn_x25iface_connect_ind(struct concap_proto *cprot)
210{ 210{
211 struct sk_buff * skb = dev_alloc_skb(1); 211 struct sk_buff * skb = dev_alloc_skb(1);
212 enum wan_states *state_p 212 enum wan_states *state_p
@@ -235,7 +235,7 @@ int isdn_x25iface_connect_ind(struct concap_proto *cprot)
235 235
236/* a disconnect is indicated by lower layer 236/* a disconnect is indicated by lower layer
237 */ 237 */
238int isdn_x25iface_disconn_ind(struct concap_proto *cprot) 238static int isdn_x25iface_disconn_ind(struct concap_proto *cprot)
239{ 239{
240 struct sk_buff *skb; 240 struct sk_buff *skb;
241 enum wan_states *state_p 241 enum wan_states *state_p
@@ -264,7 +264,7 @@ int isdn_x25iface_disconn_ind(struct concap_proto *cprot)
264/* process a frame handed over to us from linux network layer. First byte 264/* process a frame handed over to us from linux network layer. First byte
265 semantics as defined in Documentation/networking/x25-iface.txt 265 semantics as defined in Documentation/networking/x25-iface.txt
266 */ 266 */
267int isdn_x25iface_xmit(struct concap_proto *cprot, struct sk_buff *skb) 267static int isdn_x25iface_xmit(struct concap_proto *cprot, struct sk_buff *skb)
268{ 268{
269 unsigned char firstbyte = skb->data[0]; 269 unsigned char firstbyte = skb->data[0];
270 enum wan_states *state = &((ix25_pdata_t*)cprot->proto_data)->state; 270 enum wan_states *state = &((ix25_pdata_t*)cprot->proto_data)->state;