diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-10-27 11:22:10 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:28:50 -0500 |
commit | aac8763697c6b7aa133abe8092a25154960e9a0c (patch) | |
tree | 83d2c3e131bf52df6fd2e107a44b6b9f32bc9588 /virt/kvm/kvm_main.c | |
parent | 3bcc8a8c6c13f601dddd948d33d89d5ac5213e3c (diff) |
KVM: get rid of warning within kvm_dev_ioctl_create_vm
Fixes this:
CC arch/s390/kvm/../../../virt/kvm/kvm_main.o
arch/s390/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_dev_ioctl_create_vm':
arch/s390/kvm/../../../virt/kvm/kvm_main.c:1828:10: warning: unused variable 'r'
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 3c99c2f23d8f..f2c2d84723c2 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -1961,7 +1961,7 @@ static struct file_operations kvm_vm_fops = { | |||
1961 | 1961 | ||
1962 | static int kvm_dev_ioctl_create_vm(void) | 1962 | static int kvm_dev_ioctl_create_vm(void) |
1963 | { | 1963 | { |
1964 | int fd, r; | 1964 | int r; |
1965 | struct kvm *kvm; | 1965 | struct kvm *kvm; |
1966 | 1966 | ||
1967 | kvm = kvm_create_vm(); | 1967 | kvm = kvm_create_vm(); |
@@ -1974,11 +1974,11 @@ static int kvm_dev_ioctl_create_vm(void) | |||
1974 | return r; | 1974 | return r; |
1975 | } | 1975 | } |
1976 | #endif | 1976 | #endif |
1977 | fd = anon_inode_getfd("kvm-vm", &kvm_vm_fops, kvm, O_RDWR); | 1977 | r = anon_inode_getfd("kvm-vm", &kvm_vm_fops, kvm, O_RDWR); |
1978 | if (fd < 0) | 1978 | if (r < 0) |
1979 | kvm_put_kvm(kvm); | 1979 | kvm_put_kvm(kvm); |
1980 | 1980 | ||
1981 | return fd; | 1981 | return r; |
1982 | } | 1982 | } |
1983 | 1983 | ||
1984 | static long kvm_dev_ioctl_check_extension_generic(long arg) | 1984 | static long kvm_dev_ioctl_check_extension_generic(long arg) |