* [PATCH] tools/crypto:Remove unused variable
@ 2024-08-20 7:42 Zhu Jun
2024-08-20 19:53 ` Mario Limonciello
0 siblings, 1 reply; 2+ messages in thread
From: Zhu Jun @ 2024-08-20 7:42 UTC (permalink / raw)
To: mario.limonciello; +Cc: linux-crypto, linux-kernel, Zhu Jun
the variable is never referenced in the code, just remove them.
Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
---
tools/crypto/ccp/dbc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/crypto/ccp/dbc.c b/tools/crypto/ccp/dbc.c
index a807df0f0597..80248d3d3a5a 100644
--- a/tools/crypto/ccp/dbc.c
+++ b/tools/crypto/ccp/dbc.c
@@ -57,7 +57,6 @@ int process_param(int fd, int msg_index, __u8 *signature, int *data)
.msg_index = msg_index,
.param = *data,
};
- int ret;
assert(signature);
assert(data);
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] tools/crypto:Remove unused variable
2024-08-20 7:42 [PATCH] tools/crypto:Remove unused variable Zhu Jun
@ 2024-08-20 19:53 ` Mario Limonciello
0 siblings, 0 replies; 2+ messages in thread
From: Mario Limonciello @ 2024-08-20 19:53 UTC (permalink / raw)
To: Zhu Jun; +Cc: linux-crypto, linux-kernel
On 8/20/2024 02:42, Zhu Jun wrote:
> the variable is never referenced in the code, just remove them.
nit on the sentence:
s,the variable,the ret variable,
s,them,it,
>
> Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Thank you!
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
> tools/crypto/ccp/dbc.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tools/crypto/ccp/dbc.c b/tools/crypto/ccp/dbc.c
> index a807df0f0597..80248d3d3a5a 100644
> --- a/tools/crypto/ccp/dbc.c
> +++ b/tools/crypto/ccp/dbc.c
> @@ -57,7 +57,6 @@ int process_param(int fd, int msg_index, __u8 *signature, int *data)
> .msg_index = msg_index,
> .param = *data,
> };
> - int ret;
>
> assert(signature);
> assert(data);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-20 19:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-20 7:42 [PATCH] tools/crypto:Remove unused variable Zhu Jun
2024-08-20 19:53 ` Mario Limonciello
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®