diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-27 06:59:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-27 06:59:24 -0400 |
commit | 2c3abab7c95295f319dc8899b74cbd60140fcdfb (patch) | |
tree | b6fbad678b3967208b045e3a9aa3962d20c0dccf /net | |
parent | 6c3b8fc618905d7599dcc514c99ce4293d476f39 (diff) |
ipcomp: Fix warnings after ipcomp consolidation.
net/ipv4/ipcomp.c: In function ‘ipcomp4_init_state’:
net/ipv4/ipcomp.c:109: warning: unused variable ‘calg_desc’
net/ipv4/ipcomp.c:108: warning: unused variable ‘ipcd’
net/ipv4/ipcomp.c:107: warning: ‘err’ may be used uninitialized in this function
net/ipv6/ipcomp6.c: In function ‘ipcomp6_init_state’:
net/ipv6/ipcomp6.c:139: warning: unused variable ‘calg_desc’
net/ipv6/ipcomp6.c:138: warning: unused variable ‘ipcd’
net/ipv6/ipcomp6.c:137: warning: ‘err’ may be used uninitialized in this function
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ipcomp.c | 4 | ||||
-rw-r--r-- | net/ipv6/ipcomp6.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index a42b64d040c4..38ccb6dfb02e 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c | |||
@@ -104,9 +104,7 @@ out: | |||
104 | 104 | ||
105 | static int ipcomp4_init_state(struct xfrm_state *x) | 105 | static int ipcomp4_init_state(struct xfrm_state *x) |
106 | { | 106 | { |
107 | int err; | 107 | int err = -EINVAL; |
108 | struct ipcomp_data *ipcd; | ||
109 | struct xfrm_algo_desc *calg_desc; | ||
110 | 108 | ||
111 | x->props.header_len = 0; | 109 | x->props.header_len = 0; |
112 | switch (x->props.mode) { | 110 | switch (x->props.mode) { |
diff --git a/net/ipv6/ipcomp6.c b/net/ipv6/ipcomp6.c index 0cfcea42153a..4545e4306862 100644 --- a/net/ipv6/ipcomp6.c +++ b/net/ipv6/ipcomp6.c | |||
@@ -134,9 +134,7 @@ out: | |||
134 | 134 | ||
135 | static int ipcomp6_init_state(struct xfrm_state *x) | 135 | static int ipcomp6_init_state(struct xfrm_state *x) |
136 | { | 136 | { |
137 | int err; | 137 | int err = -EINVAL; |
138 | struct ipcomp_data *ipcd; | ||
139 | struct xfrm_algo_desc *calg_desc; | ||
140 | 138 | ||
141 | x->props.header_len = 0; | 139 | x->props.header_len = 0; |
142 | switch (x->props.mode) { | 140 | switch (x->props.mode) { |