[PATCH] selftests/ipc: Remove unused variables

zhangjiao2 posted 1 patch 1 year, 2 months ago
tools/testing/selftests/ipc/msgque.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] selftests/ipc: Remove unused variables
Posted by zhangjiao2 1 year, 2 months ago
From: zhang jiao <zhangjiao2@cmss.chinamobile.com>

Delete variables "msg" and "pid" that have never been used.

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
---
 tools/testing/selftests/ipc/msgque.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/ipc/msgque.c b/tools/testing/selftests/ipc/msgque.c
index c75ea4094870..e9dbb84c100a 100644
--- a/tools/testing/selftests/ipc/msgque.c
+++ b/tools/testing/selftests/ipc/msgque.c
@@ -194,7 +194,7 @@ int fill_msgque(struct msgque_data *msgque)
 
 int main(int argc, char **argv)
 {
-	int msg, pid, err;
+	int err;
 	struct msgque_data msgque;
 
 	if (getuid() != 0)
-- 
2.33.0
Re: [PATCH] selftests/ipc: Remove unused variables
Posted by Muhammad Usama Anjum 1 year, 2 months ago
On 12/2/24 9:58 AM, zhangjiao2 wrote:
> From: zhang jiao <zhangjiao2@cmss.chinamobile.com>
> 
> Delete variables "msg" and "pid" that have never been used.
> 
> Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>

> ---
>  tools/testing/selftests/ipc/msgque.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/ipc/msgque.c b/tools/testing/selftests/ipc/msgque.c
> index c75ea4094870..e9dbb84c100a 100644
> --- a/tools/testing/selftests/ipc/msgque.c
> +++ b/tools/testing/selftests/ipc/msgque.c
> @@ -194,7 +194,7 @@ int fill_msgque(struct msgque_data *msgque)
>  
>  int main(int argc, char **argv)
>  {
> -	int msg, pid, err;
> +	int err;
>  	struct msgque_data msgque;
>  
>  	if (getuid() != 0)


-- 
BR,
Muhammad Usama Anjum