diff mbox series

selftests/dma:remove unused variable

Message ID 20240710065759.5988-1-zhujun2@cmss.chinamobile.com (mailing list archive)
State Accepted
Commit 2b2ea9f19da15dc96b7fbdf583de71f5f41331fc
Headers show
Series selftests/dma:remove unused variable | expand

Commit Message

Zhu Jun July 10, 2024, 6:57 a.m. UTC
The variable are never referenced in the code, just remove it
that this problem was discovered by reading code

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
---
 tools/testing/selftests/dma/dma_map_benchmark.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Shuah Khan July 10, 2024, 3:58 p.m. UTC | #1
On 7/10/24 00:57, Zhu Jun wrote:
> The variable are never referenced in the code, just remove it
> that this problem was discovered by reading code
> 
> Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
> ---
>   tools/testing/selftests/dma/dma_map_benchmark.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/dma/dma_map_benchmark.c b/tools/testing/selftests/dma/dma_map_benchmark.c
> index 3fcea00961c0..c91b485ca99a 100644
> --- a/tools/testing/selftests/dma/dma_map_benchmark.c
> +++ b/tools/testing/selftests/dma/dma_map_benchmark.c
> @@ -33,7 +33,6 @@ int main(int argc, char **argv)
>   	int granule = 1;
>   
>   	int cmd = DMA_MAP_BENCHMARK;
> -	char *p;
>   
>   	while ((opt = getopt(argc, argv, "t:s:n:b:d:x:g:")) != -1) {
>   		switch (opt) {

Applied to linux-kselftest next for Linux 6.11-rc1.

thanks,
-- Shuah
diff mbox series

Patch

diff --git a/tools/testing/selftests/dma/dma_map_benchmark.c b/tools/testing/selftests/dma/dma_map_benchmark.c
index 3fcea00961c0..c91b485ca99a 100644
--- a/tools/testing/selftests/dma/dma_map_benchmark.c
+++ b/tools/testing/selftests/dma/dma_map_benchmark.c
@@ -33,7 +33,6 @@  int main(int argc, char **argv)
 	int granule = 1;
 
 	int cmd = DMA_MAP_BENCHMARK;
-	char *p;
 
 	while ((opt = getopt(argc, argv, "t:s:n:b:d:x:g:")) != -1) {
 		switch (opt) {