Skip to content

Commit

Permalink
ipcomp: Fix warnings after ipcomp consolidation.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Jul 27, 2008
1 parent 6c3b8fc commit 2c3abab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions net/ipv4/ipcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ static int ipcomp_tunnel_attach(struct xfrm_state *x)

static int ipcomp4_init_state(struct xfrm_state *x)
{
int err;
struct ipcomp_data *ipcd;
struct xfrm_algo_desc *calg_desc;
int err = -EINVAL;

x->props.header_len = 0;
switch (x->props.mode) {
Expand Down
4 changes: 1 addition & 3 deletions net/ipv6/ipcomp6.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ static int ipcomp6_tunnel_attach(struct xfrm_state *x)

static int ipcomp6_init_state(struct xfrm_state *x)
{
int err;
struct ipcomp_data *ipcd;
struct xfrm_algo_desc *calg_desc;
int err = -EINVAL;

x->props.header_len = 0;
switch (x->props.mode) {
Expand Down

0 comments on commit 2c3abab

Please sign in to comment.