Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48092
b: refs/heads/master
c: 045236a
h: refs/heads/master
v: v3
  • Loading branch information
Ahmed S. Darwish authored and Martin Schwidefsky committed Feb 12, 2007
1 parent 95541fc commit 2e5123f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4dd3cc5caf41d55cd5e55f32902c8a2ad3296e19
refs/heads/master: 045236ab190636c989ae8198eca37cfbafc1430b
3 changes: 2 additions & 1 deletion trunk/drivers/s390/cio/device_id.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>

#include <asm/ccwdev.h>
#include <asm/delay.h>
Expand Down Expand Up @@ -138,7 +139,7 @@ VM_virtual_device_info (__u16 devno, struct senseid *ps)
ps->cu_model = 0x60;
return;
}
for (i = 0; i < sizeof(vm_devices) / sizeof(vm_devices[0]); i++)
for (i = 0; i < ARRAY_SIZE(vm_devices); i++)
if (diag_data.vrdcvcla == vm_devices[i].vrdcvcla &&
diag_data.vrdcvtyp == vm_devices[i].vrdcvtyp) {
ps->cu_type = vm_devices[i].cu_type;
Expand Down

0 comments on commit 2e5123f

Please sign in to comment.