diff options
author | Matthew Ahrens <[email protected]> | 2020-08-04 11:36:53 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-08-05 10:28:18 -0700 |
commit | 0cab7970f9c10284d2dae47de52c974101e68274 (patch) | |
tree | 36accdaaa57d7215d6ef23eb989f718355a27fa5 | |
parent | 74e994ec63804af69b177b2a26f13a67dd2b9360 (diff) |
Remove commented-out code
Remove dead code to make the implementation easier to understand.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Ahrens <[email protected]>
Closes #10650
-rw-r--r-- | module/os/freebsd/spl/spl_zlib.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/module/os/freebsd/spl/spl_zlib.c b/module/os/freebsd/spl/spl_zlib.c index 079801f2d..3644eba77 100644 --- a/module/os/freebsd/spl/spl_zlib.c +++ b/module/os/freebsd/spl/spl_zlib.c @@ -240,30 +240,3 @@ z_uncompress(void *dest, size_t *destLen, const void *source, size_t sourceLen) return (err); } - -#if 0 -int -spl_zlib_init(void) -{ - int size; - - size = MAX(spl_zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL), - zlib_inflate_workspacesize()); - - zlib_workspace_cache = kmem_cache_create( - "spl_zlib_workspace_cache", - size, 0, NULL, NULL, NULL, NULL, NULL, - KMC_VMEM | KMC_NOEMERGENCY); - if (!zlib_workspace_cache) - return (1); - - return (0); -} - -void -spl_zlib_fini(void) -{ - kmem_cache_destroy(zlib_workspace_cache); - zlib_workspace_cache = NULL; -} -#endif |