Skip to content

Commit

Permalink
KVM: selftests: Remove superfluous variable assignment
Browse files Browse the repository at this point in the history
Don't nullify "nodep" to NULL one line before it's set to "tmp".

Signed-off-by: Minjie Du <duminjie@vivo.com>
Link: https://lore.kernel.org/r/20230704122148.11573-1-duminjie@vivo.com
[sean: massage shortlog+changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
  • Loading branch information
Minjie Du authored and sean-jc committed Aug 2, 2023
1 parent b859b01 commit 7e4966e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/testing/selftests/kvm/lib/sparsebit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e4966e

Please sign in to comment.