crypto: deflate - Fix checkpatch errors
Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
c9af70fb86
commit
9472d763b3
@@ -49,7 +49,7 @@ static int deflate_comp_init(struct deflate_ctx *ctx)
|
|||||||
struct z_stream_s *stream = &ctx->comp_stream;
|
struct z_stream_s *stream = &ctx->comp_stream;
|
||||||
|
|
||||||
stream->workspace = vmalloc(zlib_deflate_workspacesize());
|
stream->workspace = vmalloc(zlib_deflate_workspacesize());
|
||||||
if (!stream->workspace ) {
|
if (!stream->workspace) {
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@@ -74,7 +74,7 @@ static int deflate_decomp_init(struct deflate_ctx *ctx)
|
|||||||
struct z_stream_s *stream = &ctx->decomp_stream;
|
struct z_stream_s *stream = &ctx->decomp_stream;
|
||||||
|
|
||||||
stream->workspace = kzalloc(zlib_inflate_workspacesize(), GFP_KERNEL);
|
stream->workspace = kzalloc(zlib_inflate_workspacesize(), GFP_KERNEL);
|
||||||
if (!stream->workspace ) {
|
if (!stream->workspace) {
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user