diff for duplicates of <20121105032023.GC22409@drongo> diff --git a/a/1.txt b/N1/1.txt index a8cc2c8..c51b9fd 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -151,9 +151,9 @@ index 843eb75..8284d55 100644 + + rc = kvmppc_rtas_hcall(vcpu); + -+ if (rc = -ENOENT) ++ if (rc == -ENOENT) + return RESUME_HOST; -+ else if (rc = 0) ++ else if (rc == 0) + break; + + /* Send the error out to userspace via KVM_RUN */ @@ -269,7 +269,7 @@ index 0000000..8a324e8 + lockdep_assert_held(&kvm->lock); + + list_for_each_entry(d, &kvm->arch.rtas_tokens, list) { -+ if (d->token = token) ++ if (d->token == token) + return -EEXIST; + } + @@ -345,7 +345,7 @@ index 0000000..8a324e8 + + rc = -ENOENT; + list_for_each_entry(d, &vcpu->kvm->arch.rtas_tokens, list) { -+ if (d->token = args.token) { ++ if (d->token == args.token) { + d->handler->handler(vcpu, &args); + rc = 0; + break; @@ -354,7 +354,7 @@ index 0000000..8a324e8 + + mutex_unlock(&vcpu->kvm->lock); + -+ if (rc = 0) { ++ if (rc == 0) { + args.rets = orig_rets; + rc = kvm_write_guest(vcpu->kvm, args_phys, &args, sizeof(args)); + if (rc) diff --git a/a/content_digest b/N1/content_digest index b85e45b..ec1d4dc 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020121105031806.GA22409@drongo\0" "From\0Paul Mackerras <paulus@samba.org>\0" "Subject\0[RFC PATCH 2/9] KVM: PPC: Book3S: Add infrastructure to implement kernel-side RTAS calls\0" - "Date\0Mon, 05 Nov 2012 03:20:23 +0000\0" + "Date\0Mon, 5 Nov 2012 14:20:23 +1100\0" "To\0Alexander Graf <agraf@suse.de>\0" "Cc\0kvm@vger.kernel.org" kvm-ppc@vger.kernel.org @@ -161,9 +161,9 @@ "+\n" "+\t\trc = kvmppc_rtas_hcall(vcpu);\n" "+\n" - "+\t\tif (rc = -ENOENT)\n" + "+\t\tif (rc == -ENOENT)\n" "+\t\t\treturn RESUME_HOST;\n" - "+\t\telse if (rc = 0)\n" + "+\t\telse if (rc == 0)\n" "+\t\t\tbreak;\n" "+\n" "+\t\t/* Send the error out to userspace via KVM_RUN */\n" @@ -279,7 +279,7 @@ "+\tlockdep_assert_held(&kvm->lock);\n" "+\n" "+\tlist_for_each_entry(d, &kvm->arch.rtas_tokens, list) {\n" - "+\t\tif (d->token = token)\n" + "+\t\tif (d->token == token)\n" "+\t\t\treturn -EEXIST;\n" "+\t}\n" "+\n" @@ -355,7 +355,7 @@ "+\n" "+\trc = -ENOENT;\n" "+\tlist_for_each_entry(d, &vcpu->kvm->arch.rtas_tokens, list) {\n" - "+\t\tif (d->token = args.token) {\n" + "+\t\tif (d->token == args.token) {\n" "+\t\t\td->handler->handler(vcpu, &args);\n" "+\t\t\trc = 0;\n" "+\t\t\tbreak;\n" @@ -364,7 +364,7 @@ "+\n" "+\tmutex_unlock(&vcpu->kvm->lock);\n" "+\n" - "+\tif (rc = 0) {\n" + "+\tif (rc == 0) {\n" "+\t\targs.rets = orig_rets;\n" "+\t\trc = kvm_write_guest(vcpu->kvm, args_phys, &args, sizeof(args));\n" "+\t\tif (rc)\n" @@ -454,4 +454,4 @@ "-- \n" 1.7.10.4 -524e745c80a8d415b84807ee581194d9a30fe8e12a28fd5b2c149f30ec89c6b4 +a262294b95efb95ec1bca887df37ac67f3987b23ccbe8ae95d3afb70c6a5dd47
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.