Commit 479de16f authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Will Deacon
Browse files

kvm tools: Use ARRAY_SIZE helper to count serial devices



Signed-off-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent f76a3285
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment