Message ID | 20240820074242.4926-1-zhujun2@cmss.chinamobile.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show |
Series | tools/crypto:Remove unused variable | expand |
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);
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);
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(-)