2023-07-04 12:28:45

by Minjie Du

[permalink] [raw]
Subject: [PATCH v1] tools: remove duplicate assignment

Fix: make 'nodep' remove duplicate assignment

Signed-off-by: Minjie Du <[email protected]>
---
tools/testing/selftests/kvm/lib/sparsebit.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/tools/testing/selftests/kvm/lib/sparsebit.c b/tools/testing/selftests/kvm/lib/sparsebit.c
index 50e0cf41a..88cb6b84e 100644
--- a/tools/testing/selftests/kvm/lib/sparsebit.c
+++ b/tools/testing/selftests/kvm/lib/sparsebit.c
@@ -634,7 +634,6 @@ static void node_reduce(struct sparsebit *s, struct node *nodep)
tmp = node_prev(s, nodep);

node_rm(s, nodep);
- nodep = NULL;

nodep = tmp;
reduction_performed = true;
--
2.39.0



2023-08-02 22:30:06

by Sean Christopherson

[permalink] [raw]
Subject: Re: [PATCH v1] tools: remove duplicate assignment

On Tue, 04 Jul 2023 20:21:47 +0800, Minjie Du wrote:
> Fix: make 'nodep' remove duplicate assignment
>
>

Applied to kvm-x86 selftests (with some massaging of the changelog), thanks!

[1/1] tools: remove duplicate assignment
https://github.com/kvm-x86/linux/commit/7e4966e6e13d

--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes