diff options
| -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) { |
