Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48293
b: refs/heads/master
c: 9a6b090
h: refs/heads/master
i:
  48291: f121427
v: v3
  • Loading branch information
Ahmed S. Darwish authored and Roland Dreier committed Feb 10, 2007
1 parent 93ad3a3 commit c882dbf
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: 99d4f22e91d26e0f8b113bf7fde65a335d36ad6b
refs/heads/master: 9a6b090c0d1cd5c90f21db772dbe2fbcf14366de
3 changes: 2 additions & 1 deletion trunk/drivers/infiniband/core/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <linux/module.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/mutex.h>
Expand Down Expand Up @@ -93,7 +94,7 @@ static int ib_device_check_mandatory(struct ib_device *device)
};
int i;

for (i = 0; i < sizeof mandatory_table / sizeof mandatory_table[0]; ++i) {
for (i = 0; i < ARRAY_SIZE(mandatory_table); ++i) {
if (!*(void **) ((void *) device + mandatory_table[i].offset)) {
printk(KERN_WARNING "Device %s is missing mandatory function %s\n",
device->name, mandatory_table[i].name);
Expand Down

0 comments on commit c882dbf

Please sign in to comment.