Skip to content

Commit 9472d76

Browse files
RichiHherbertx
authored andcommitted
crypto: deflate - Fix checkpatch errors
Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent c9af70f commit 9472d76

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎crypto/deflate.c‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
/*
1+
/*
22
* Cryptographic API.
33
*
44
* Deflate algorithm (RFC 1951), implemented here primarily for use
55
* by IPCOMP (RFC 3173 & RFC 2394).
66
*
77
* Copyright (c) 2003 James Morris <jmorris@intercode.com.au>
8-
*
8+
*
99
* This program is free software; you can redistribute it and/or modify it
1010
* under the terms of the GNU General Public License as published by the Free
11-
* Software Foundation; either version 2 of the License, or (at your option)
11+
* Software Foundation; either version 2 of the License, or (at your option)
1212
* any later version.
1313
*
1414
* FIXME: deflate transforms will require up to a total of about 436k of kernel
@@ -49,7 +49,7 @@ static int deflate_comp_init(struct deflate_ctx *ctx)
4949
struct z_stream_s *stream = &ctx->comp_stream;
5050

5151
stream->workspace = vmalloc(zlib_deflate_workspacesize());
52-
if (!stream->workspace ) {
52+
if (!stream->workspace) {
5353
ret = -ENOMEM;
5454
goto out;
5555
}
@@ -61,7 +61,7 @@ static int deflate_comp_init(struct deflate_ctx *ctx)
6161
ret = -EINVAL;
6262
goto out_free;
6363
}
64-
out:
64+
out:
6565
return ret;
6666
out_free:
6767
vfree(stream->workspace);
@@ -74,7 +74,7 @@ static int deflate_decomp_init(struct deflate_ctx *ctx)
7474
struct z_stream_s *stream = &ctx->decomp_stream;
7575

7676
stream->workspace = kzalloc(zlib_inflate_workspacesize(), GFP_KERNEL);
77-
if (!stream->workspace ) {
77+
if (!stream->workspace) {
7878
ret = -ENOMEM;
7979
goto out;
8080
}
@@ -106,7 +106,7 @@ static int deflate_init(struct crypto_tfm *tfm)
106106
{
107107
struct deflate_ctx *ctx = crypto_tfm_ctx(tfm);
108108
int ret;
109-
109+
110110
ret = deflate_comp_init(ctx);
111111
if (ret)
112112
goto out;
@@ -153,11 +153,11 @@ static int deflate_compress(struct crypto_tfm *tfm, const u8 *src,
153153
out:
154154
return ret;
155155
}
156-
156+
157157
static int deflate_decompress(struct crypto_tfm *tfm, const u8 *src,
158158
unsigned int slen, u8 *dst, unsigned int *dlen)
159159
{
160-
160+
161161
int ret = 0;
162162
struct deflate_ctx *dctx = crypto_tfm_ctx(tfm);
163163
struct z_stream_s *stream = &dctx->decomp_stream;
@@ -182,7 +182,7 @@ static int deflate_decompress(struct crypto_tfm *tfm, const u8 *src,
182182
if (ret == Z_OK && !stream->avail_in && stream->avail_out) {
183183
u8 zerostuff = 0;
184184
stream->next_in = &zerostuff;
185-
stream->avail_in = 1;
185+
stream->avail_in = 1;
186186
ret = zlib_inflate(stream, Z_FINISH);
187187
}
188188
if (ret != Z_STREAM_END) {

0 commit comments

Comments
 (0)