projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NET]: Make all initialized struct seq_operations const.
[deliverable/linux.git]
/
net
/
decnet
/
dn_route.c
diff --git
a/net/decnet/dn_route.c
b/net/decnet/dn_route.c
index 5d7337bcf0fecde048d6916ac33f9919a72f5a41..82622fb6f68f2acca604610421f9f654548d9d89 100644
(file)
--- a/
net/decnet/dn_route.c
+++ b/
net/decnet/dn_route.c
@@
-886,7
+886,7
@@
static int dn_route_output_slow(struct dst_entry **pprt, const struct flowi *old
.iif = loopback_dev.ifindex,
.oif = oldflp->oif };
struct dn_route *rt = NULL;
.iif = loopback_dev.ifindex,
.oif = oldflp->oif };
struct dn_route *rt = NULL;
- struct net_device *dev_out = NULL;
+ struct net_device *dev_out = NULL
, *dev
;
struct neighbour *neigh = NULL;
unsigned hash;
unsigned flags = 0;
struct neighbour *neigh = NULL;
unsigned hash;
unsigned flags = 0;
@@
-925,15
+925,17
@@
static int dn_route_output_slow(struct dst_entry **pprt, const struct flowi *old
goto out;
}
read_lock(&dev_base_lock);
goto out;
}
read_lock(&dev_base_lock);
- for
(dev_out = dev_base; dev_out; dev_out = dev_out->next
) {
- if (!dev
_out
->dn_ptr)
+ for
_each_netdev(dev
) {
+ if (!dev->dn_ptr)
continue;
continue;
- if (!dn_dev_islocal(dev
_out
, oldflp->fld_src))
+ if (!dn_dev_islocal(dev, oldflp->fld_src))
continue;
continue;
- if ((dev
_out
->flags & IFF_LOOPBACK) &&
+ if ((dev->flags & IFF_LOOPBACK) &&
oldflp->fld_dst &&
oldflp->fld_dst &&
- !dn_dev_islocal(dev
_out
, oldflp->fld_dst))
+ !dn_dev_islocal(dev, oldflp->fld_dst))
continue;
continue;
+
+ dev_out = dev;
break;
}
read_unlock(&dev_base_lock);
break;
}
read_unlock(&dev_base_lock);
@@
-1724,7
+1726,7
@@
static int dn_rt_cache_seq_show(struct seq_file *seq, void *v)
return 0;
}
return 0;
}
-static struct seq_operations dn_rt_cache_seq_ops = {
+static
const
struct seq_operations dn_rt_cache_seq_ops = {
.start = dn_rt_cache_seq_start,
.next = dn_rt_cache_seq_next,
.stop = dn_rt_cache_seq_stop,
.start = dn_rt_cache_seq_start,
.next = dn_rt_cache_seq_next,
.stop = dn_rt_cache_seq_stop,
This page took
0.037074 seconds
and
5
git commands to generate.