From patchwork Tue Jun 23 15:24:08 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Borntraeger X-Patchwork-Id: 31995 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5NFRaIO007635 for ; Tue, 23 Jun 2009 15:27:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755779AbZFWP13 (ORCPT ); Tue, 23 Jun 2009 11:27:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755299AbZFWP13 (ORCPT ); Tue, 23 Jun 2009 11:27:29 -0400 Received: from mtagate7.de.ibm.com ([195.212.29.156]:60381 "EHLO mtagate7.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754232AbZFWP10 (ORCPT ); Tue, 23 Jun 2009 11:27:26 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate7.de.ibm.com (8.14.3/8.13.8) with ESMTP id n5NFRSDS528468 for ; Tue, 23 Jun 2009 15:27:28 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n5NFRSDI3788880 for ; Tue, 23 Jun 2009 17:27:28 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n5NFRRnH012682 for ; Tue, 23 Jun 2009 17:27:27 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n5NFRR4c012679; Tue, 23 Jun 2009 17:27:27 +0200 Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 25651) id 7333B1224229; Tue, 23 Jun 2009 17:27:27 +0200 (CEST) Message-Id: <20090623152726.760000000@de.ibm.com> User-Agent: quilt/0.47-1 Date: Tue, 23 Jun 2009 17:24:08 +0200 From: Christian Borntraeger To: Avi Kivity Cc: Carsten Otte , Heiko Carstens , Martin Schwidefsky , KVM , Gleb Natapov , Christian Borntraeger Subject: [patch 3/3] kvm-s390: Remove some unused variables References: <20090623152405.582759000@de.ibm.com> Content-Disposition: inline; filename=fix_warnings.patch Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Christian Borntraeger This patch fixes the following warnings that were introduced by commit 2921292f45733bccdb53e426bcf65ceb13f53d94 Author: Gleb Natapov KVM: Use macro to iterate over vcpus. arch/s390/kvm/kvm-s390.c: In function 'kvm_arch_set_memory_region': arch/s390/kvm/kvm-s390.c:687: warning: unused variable 'r' arch/s390/kvm/kvm-s390.c:687: warning: unused variable 'j' CC: Gleb Natapov Signed-off-by: Christian Borntraeger --- arch/s390/kvm/kvm-s390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: kvm/arch/s390/kvm/kvm-s390.c =================================================================== --- kvm.orig/arch/s390/kvm/kvm-s390.c +++ kvm/arch/s390/kvm/kvm-s390.c @@ -684,7 +684,7 @@ int kvm_arch_set_memory_region(struct kv struct kvm_memory_slot old, int user_alloc) { - int i, j = 0, r = -EINVAL; + int i; struct kvm_vcpu *vcpu; /* A few sanity checks. We can have exactly one memory slot which has