diff options
Diffstat (limited to 'net/netrom/nr_route.c')
-rw-r--r-- | net/netrom/nr_route.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/net/netrom/nr_route.c b/net/netrom/nr_route.c index 8f88964099ef..c2fbac9c69ce 100644 --- a/net/netrom/nr_route.c +++ b/net/netrom/nr_route.c | |||
@@ -781,8 +781,8 @@ int nr_route_frame(struct sk_buff *skb, ax25_cb *ax25) | |||
781 | 781 | ||
782 | if (ax25 != NULL) { | 782 | if (ax25 != NULL) { |
783 | ret = nr_add_node(nr_src, "", &ax25->dest_addr, ax25->digipeat, | 783 | ret = nr_add_node(nr_src, "", &ax25->dest_addr, ax25->digipeat, |
784 | ax25->ax25_dev->dev, 0, | 784 | ax25->ax25_dev->dev, 0, |
785 | sysctl_netrom_obsolescence_count_initialiser); | 785 | sysctl_netrom_obsolescence_count_initialiser); |
786 | if (ret) | 786 | if (ret) |
787 | return ret; | 787 | return ret; |
788 | } | 788 | } |
@@ -861,8 +861,8 @@ static void *nr_node_start(struct seq_file *seq, loff_t *pos) | |||
861 | struct nr_node *nr_node; | 861 | struct nr_node *nr_node; |
862 | struct hlist_node *node; | 862 | struct hlist_node *node; |
863 | int i = 1; | 863 | int i = 1; |
864 | 864 | ||
865 | spin_lock_bh(&nr_node_list_lock); | 865 | spin_lock_bh(&nr_node_list_lock); |
866 | if (*pos == 0) | 866 | if (*pos == 0) |
867 | return SEQ_START_TOKEN; | 867 | return SEQ_START_TOKEN; |
868 | 868 | ||
@@ -879,8 +879,8 @@ static void *nr_node_next(struct seq_file *seq, void *v, loff_t *pos) | |||
879 | { | 879 | { |
880 | struct hlist_node *node; | 880 | struct hlist_node *node; |
881 | ++*pos; | 881 | ++*pos; |
882 | 882 | ||
883 | node = (v == SEQ_START_TOKEN) | 883 | node = (v == SEQ_START_TOKEN) |
884 | ? nr_node_list.first | 884 | ? nr_node_list.first |
885 | : ((struct nr_node *)v)->node_node.next; | 885 | : ((struct nr_node *)v)->node_node.next; |
886 | 886 | ||
@@ -934,7 +934,7 @@ static int nr_node_info_open(struct inode *inode, struct file *file) | |||
934 | return seq_open(file, &nr_node_seqops); | 934 | return seq_open(file, &nr_node_seqops); |
935 | } | 935 | } |
936 | 936 | ||
937 | struct file_operations nr_nodes_fops = { | 937 | const struct file_operations nr_nodes_fops = { |
938 | .owner = THIS_MODULE, | 938 | .owner = THIS_MODULE, |
939 | .open = nr_node_info_open, | 939 | .open = nr_node_info_open, |
940 | .read = seq_read, | 940 | .read = seq_read, |
@@ -963,8 +963,8 @@ static void *nr_neigh_next(struct seq_file *seq, void *v, loff_t *pos) | |||
963 | { | 963 | { |
964 | struct hlist_node *node; | 964 | struct hlist_node *node; |
965 | ++*pos; | 965 | ++*pos; |
966 | 966 | ||
967 | node = (v == SEQ_START_TOKEN) | 967 | node = (v == SEQ_START_TOKEN) |
968 | ? nr_neigh_list.first | 968 | ? nr_neigh_list.first |
969 | : ((struct nr_neigh *)v)->neigh_node.next; | 969 | : ((struct nr_neigh *)v)->neigh_node.next; |
970 | 970 | ||
@@ -997,7 +997,7 @@ static int nr_neigh_show(struct seq_file *seq, void *v) | |||
997 | 997 | ||
998 | if (nr_neigh->digipeat != NULL) { | 998 | if (nr_neigh->digipeat != NULL) { |
999 | for (i = 0; i < nr_neigh->digipeat->ndigi; i++) | 999 | for (i = 0; i < nr_neigh->digipeat->ndigi; i++) |
1000 | seq_printf(seq, " %s", | 1000 | seq_printf(seq, " %s", |
1001 | ax2asc(buf, &nr_neigh->digipeat->calls[i])); | 1001 | ax2asc(buf, &nr_neigh->digipeat->calls[i])); |
1002 | } | 1002 | } |
1003 | 1003 | ||
@@ -1018,7 +1018,7 @@ static int nr_neigh_info_open(struct inode *inode, struct file *file) | |||
1018 | return seq_open(file, &nr_neigh_seqops); | 1018 | return seq_open(file, &nr_neigh_seqops); |
1019 | } | 1019 | } |
1020 | 1020 | ||
1021 | struct file_operations nr_neigh_fops = { | 1021 | const struct file_operations nr_neigh_fops = { |
1022 | .owner = THIS_MODULE, | 1022 | .owner = THIS_MODULE, |
1023 | .open = nr_neigh_info_open, | 1023 | .open = nr_neigh_info_open, |
1024 | .read = seq_read, | 1024 | .read = seq_read, |