mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-23 06:28:00 +00:00
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:
committed by
Will Deacon
parent
f76a328537
commit
479de16f2b
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user