diff mbox series

[v1] tools: remove duplicate assignment

Message ID 20230704122148.11573-1-duminjie@vivo.com (mailing list archive)
State Accepted
Commit 7e4966e6e13d0dad5eae934aff8b875a2aa8f469
Headers show
Series [v1] tools: remove duplicate assignment | expand

Commit Message

Minjie Du July 4, 2023, 12:21 p.m. UTC
Fix: make 'nodep' remove duplicate assignment

Signed-off-by: Minjie Du <duminjie@vivo.com>
---
 tools/testing/selftests/kvm/lib/sparsebit.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Sean Christopherson Aug. 2, 2023, 9:18 p.m. UTC | #1
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
diff mbox series

Patch

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;