diff options
Diffstat (limited to 'net/ax25/ax25_ds_subr.c')
| -rw-r--r-- | net/ax25/ax25_ds_subr.c | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ax25/ax25_ds_subr.c b/net/ax25/ax25_ds_subr.c index 85816e612dc..e05bd57b5af 100644 --- a/net/ax25/ax25_ds_subr.c +++ b/net/ax25/ax25_ds_subr.c @@ -24,7 +24,6 @@  #include <linux/skbuff.h>  #include <net/sock.h>  #include <asm/uaccess.h> -#include <asm/system.h>  #include <linux/fcntl.h>  #include <linux/mm.h>  #include <linux/interrupt.h> @@ -40,7 +39,6 @@ void ax25_ds_nr_error_recovery(ax25_cb *ax25)  void ax25_ds_enquiry_response(ax25_cb *ax25)  {  	ax25_cb *ax25o; -	struct hlist_node *node;  	/* Please note that neither DK4EG's nor DG2FEF's  	 * DAMA spec mention the following behaviour as seen @@ -81,7 +79,7 @@ void ax25_ds_enquiry_response(ax25_cb *ax25)  	ax25_ds_set_timer(ax25->ax25_dev);  	spin_lock(&ax25_list_lock); -	ax25_for_each(ax25o, node, &ax25_list) { +	ax25_for_each(ax25o, &ax25_list) {  		if (ax25o == ax25)  			continue; @@ -160,10 +158,9 @@ static int ax25_check_dama_slave(ax25_dev *ax25_dev)  {  	ax25_cb *ax25;  	int res = 0; -	struct hlist_node *node;  	spin_lock(&ax25_list_lock); -	ax25_for_each(ax25, node, &ax25_list) +	ax25_for_each(ax25, &ax25_list)  		if (ax25->ax25_dev == ax25_dev && (ax25->condition & AX25_COND_DAMA_MODE) && ax25->state > AX25_STATE_1) {  			res = 1;  			break;  | 
