diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-04-27 17:20:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-30 19:40:05 -0400 |
commit | 4b021628beb26238087812829cc080da47e4b236 (patch) | |
tree | 815a0bcdb435c3d070b110a1fa08ed9cb33691f4 /net/xfrm/xfrm_policy.c | |
parent | 767dd03369ac18af58efdef0383d6eb986eab426 (diff) |
xfrm: potential uninitialized variable num_xfrms
potential uninitialized variable num_xfrms
fix compiler warning: 'num_xfrms' may be used uninitialized in this function.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
----
net/xfrm/xfrm_policy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 7430ac26ec49..31f4ba43b48f 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -1732,7 +1732,7 @@ int __xfrm_lookup(struct net *net, struct dst_entry **dst_p, struct flowi *fl, | |||
1732 | struct dst_entry *dst, *dst_orig = *dst_p, *route; | 1732 | struct dst_entry *dst, *dst_orig = *dst_p, *route; |
1733 | u16 family = dst_orig->ops->family; | 1733 | u16 family = dst_orig->ops->family; |
1734 | u8 dir = policy_to_flow_dir(XFRM_POLICY_OUT); | 1734 | u8 dir = policy_to_flow_dir(XFRM_POLICY_OUT); |
1735 | int i, err, num_pols, num_xfrms, drop_pols = 0; | 1735 | int i, err, num_pols, num_xfrms = 0, drop_pols = 0; |
1736 | 1736 | ||
1737 | restart: | 1737 | restart: |
1738 | dst = NULL; | 1738 | dst = NULL; |