* [PATCH] virt: kvm: coding style cleanups
@ 2010-11-25 0:28 Javier Martinez Canillas
2010-11-25 4:00 ` Dan Carpenter
0 siblings, 1 reply; 2+ messages in thread
From: Javier Martinez Canillas @ 2010-11-25 0:28 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti, kvm, kernel-janitors
Fixes coding style issues on virt/kvm/assigned-dev.c
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
---
virt/kvm/assigned-dev.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/virt/kvm/assigned-dev.c b/virt/kvm/assigned-dev.c
index ae72ae6..c9dd690 100644
--- a/virt/kvm/assigned-dev.c
+++ b/virt/kvm/assigned-dev.c
@@ -620,7 +620,7 @@ static int kvm_vm_ioctl_set_msix_nr(struct kvm *kvm,
goto msix_nr_out;
}
adev->guest_msix_entries =
- kzalloc(sizeof(struct msix_entry) * entry_nr->entry_nr,
+ kzalloc(sizeof(struct msix_entry) *entry_nr->entry_nr,
GFP_KERNEL);
if (!adev->guest_msix_entries) {
kfree(adev->host_msix_entries);
@@ -750,7 +750,7 @@ long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
goto out_free_irq_routing;
r = kvm_set_irq_routing(kvm, entries, routing.nr,
routing.flags);
- out_free_irq_routing:
+out_free_irq_routing:
vfree(entries);
break;
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] virt: kvm: coding style cleanups
2010-11-25 0:28 [PATCH] virt: kvm: coding style cleanups Javier Martinez Canillas
@ 2010-11-25 4:00 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2010-11-25 4:00 UTC (permalink / raw)
To: Javier Martinez Canillas
Cc: Avi Kivity, Marcelo Tosatti, kvm, kernel-janitors
On Thu, Nov 25, 2010 at 01:28:57AM +0100, Javier Martinez Canillas wrote:
> adev->guest_msix_entries =
> - kzalloc(sizeof(struct msix_entry) * entry_nr->entry_nr,
> + kzalloc(sizeof(struct msix_entry) *entry_nr->entry_nr,
The original code was right and the new code is wrong.
> GFP_KERNEL);
> if (!adev->guest_msix_entries) {
> kfree(adev->host_msix_entries);
> @@ -750,7 +750,7 @@ long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
> goto out_free_irq_routing;
> r = kvm_set_irq_routing(kvm, entries, routing.nr,
> routing.flags);
> - out_free_irq_routing:
> +out_free_irq_routing:
This is a pointless change.
> vfree(entries);
> break;
You're wasting people's time here and we like newbies but it makes
everyone annoyed.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-25 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-25 0:28 [PATCH] virt: kvm: coding style cleanups Javier Martinez Canillas
2010-11-25 4:00 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox