aboutsummaryrefslogtreecommitdiffstats
path: root/net/ax25/ax25_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ax25/ax25_route.c')
-rw-r--r--net/ax25/ax25_route.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ax25/ax25_route.c b/net/ax25/ax25_route.c
index 0a0381622b1..7078861a738 100644
--- a/net/ax25/ax25_route.c
+++ b/net/ax25/ax25_route.c
@@ -87,7 +87,7 @@ static int __must_check ax25_rt_add(struct ax25_routes_struct *route)
87 ax25_rt = ax25_route_list; 87 ax25_rt = ax25_route_list;
88 while (ax25_rt != NULL) { 88 while (ax25_rt != NULL) {
89 if (ax25cmp(&ax25_rt->callsign, &route->dest_addr) == 0 && 89 if (ax25cmp(&ax25_rt->callsign, &route->dest_addr) == 0 &&
90 ax25_rt->dev == ax25_dev->dev) { 90 ax25_rt->dev == ax25_dev->dev) {
91 kfree(ax25_rt->digipeat); 91 kfree(ax25_rt->digipeat);
92 ax25_rt->digipeat = NULL; 92 ax25_rt->digipeat = NULL;
93 if (route->digi_count != 0) { 93 if (route->digi_count != 0) {
@@ -252,8 +252,8 @@ static void *ax25_rt_seq_start(struct seq_file *seq, loff_t *pos)
252{ 252{
253 struct ax25_route *ax25_rt; 253 struct ax25_route *ax25_rt;
254 int i = 1; 254 int i = 1;
255 255
256 read_lock(&ax25_route_lock); 256 read_lock(&ax25_route_lock);
257 if (*pos == 0) 257 if (*pos == 0)
258 return SEQ_START_TOKEN; 258 return SEQ_START_TOKEN;
259 259
@@ -269,7 +269,7 @@ static void *ax25_rt_seq_start(struct seq_file *seq, loff_t *pos)
269static void *ax25_rt_seq_next(struct seq_file *seq, void *v, loff_t *pos) 269static void *ax25_rt_seq_next(struct seq_file *seq, void *v, loff_t *pos)
270{ 270{
271 ++*pos; 271 ++*pos;
272 return (v == SEQ_START_TOKEN) ? ax25_route_list : 272 return (v == SEQ_START_TOKEN) ? ax25_route_list :
273 ((struct ax25_route *) v)->next; 273 ((struct ax25_route *) v)->next;
274} 274}
275 275