Commit b1816e00 authored by Paul Mackerras's avatar Paul Mackerras Committed by David S. Miller

[PPP]: Rest of compression module changes, oops.

parent 7c888716
...@@ -88,7 +88,6 @@ z_comp_free(arg) ...@@ -88,7 +88,6 @@ z_comp_free(arg)
if (state->strm.workspace) if (state->strm.workspace)
vfree(state->strm.workspace); vfree(state->strm.workspace);
kfree(state); kfree(state);
MOD_DEC_USE_COUNT;
} }
} }
...@@ -118,7 +117,6 @@ z_comp_alloc(options, opt_len) ...@@ -118,7 +117,6 @@ z_comp_alloc(options, opt_len)
if (state == NULL) if (state == NULL)
return NULL; return NULL;
MOD_INC_USE_COUNT;
memset (state, 0, sizeof (struct ppp_deflate_state)); memset (state, 0, sizeof (struct ppp_deflate_state));
state->strm.next_in = NULL; state->strm.next_in = NULL;
state->w_size = w_size; state->w_size = w_size;
...@@ -274,7 +272,6 @@ z_decomp_free(arg) ...@@ -274,7 +272,6 @@ z_decomp_free(arg)
if (state->strm.workspace) if (state->strm.workspace)
kfree(state->strm.workspace); kfree(state->strm.workspace);
kfree(state); kfree(state);
MOD_DEC_USE_COUNT;
} }
} }
...@@ -303,7 +300,6 @@ z_decomp_alloc(options, opt_len) ...@@ -303,7 +300,6 @@ z_decomp_alloc(options, opt_len)
if (state == NULL) if (state == NULL)
return NULL; return NULL;
MOD_INC_USE_COUNT;
memset (state, 0, sizeof (struct ppp_deflate_state)); memset (state, 0, sizeof (struct ppp_deflate_state));
state->w_size = w_size; state->w_size = w_size;
state->strm.next_out = NULL; state->strm.next_out = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment