kvm tools: Use ARRAY_SIZE helper to count serial devices

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Cyrill Gorcunov
2011-10-27 10:35:17 +04:00
committed by Will Deacon
parent f76a328537
commit 479de16f2b
+2 -2
View File
@@ -130,9 +130,9 @@ static void serial8250__receive(struct kvm *kvm, struct serial8250_device *dev)
void serial8250__inject_interrupt(struct kvm *kvm)
{
int i;
unsigned int i;
for (i = 0; i < 4; i++) {
for (i = 0; i < ARRAY_SIZE(devices); i++) {
struct serial8250_device *dev = &devices[i];
mutex_lock(&dev->mutex);