2023-03-21 07:12:11

by 李扬韬

[permalink] [raw]
Subject: [PATCH] ubifs: remove return in compr_exit()

It's redundant, let's remove it.

Signed-off-by: Yangtao Li <[email protected]>
---
fs/ubifs/compress.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/ubifs/compress.c b/fs/ubifs/compress.c
index 3a92e6af69b2..75461777c466 100644
--- a/fs/ubifs/compress.c
+++ b/fs/ubifs/compress.c
@@ -217,7 +217,6 @@ static void compr_exit(struct ubifs_compressor *compr)
{
if (compr->capi_name)
crypto_free_comp(compr->cc);
- return;
}

/**
--
2.35.1



2023-03-21 07:34:38

by Zhihao Cheng

[permalink] [raw]
Subject: Re: [PATCH] ubifs: remove return in compr_exit()

> It's redundant, let's remove it.
>
> Signed-off-by: Yangtao Li <[email protected]>
> ---
> fs/ubifs/compress.c | 1 -
> 1 file changed, 1 deletion(-)
Reviewed-by: Zhihao Cheng <[email protected]>
>
> diff --git a/fs/ubifs/compress.c b/fs/ubifs/compress.c
> index 3a92e6af69b2..75461777c466 100644
> --- a/fs/ubifs/compress.c
> +++ b/fs/ubifs/compress.c
> @@ -217,7 +217,6 @@ static void compr_exit(struct ubifs_compressor *compr)
> {
> if (compr->capi_name)
> crypto_free_comp(compr->cc);
> - return;
> }
>
> /**
>