Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325109
b: refs/heads/master
c: 3faac28
h: refs/heads/master
i:
  325107: a2c3631
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent a441f5e commit 5e8f201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 98943079bfe0fcaca05410ea2fcfc00988ecc661
refs/heads/master: 3faac285bbe190667798bc6aa20c51c91c6a165e
5 changes: 1 addition & 4 deletions trunk/drivers/staging/comedi/drivers/adl_pci9111.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,6 @@ static const struct pci9111_board pci9111_boards[] = {
.ai_acquisition_period_min_ns = PCI9111_AI_ACQUISITION_PERIOD_MIN_NS}
};

#define pci9111_board_nbr \
(sizeof(pci9111_boards)/sizeof(struct pci9111_board))

/* Private data structure */

struct pci9111_private_data {
Expand Down Expand Up @@ -1228,7 +1225,7 @@ static struct pci_dev *pci9111_find_pci(struct comedi_device *dev,
for_each_pci_dev(pcidev) {
if (pcidev->vendor != PCI_VENDOR_ID_ADLINK)
continue;
for (i = 0; i < pci9111_board_nbr; i++) {
for (i = 0; i < ARRAY_SIZE(pci9111_boards); i++) {
if (pcidev->device != pci9111_boards[i].device_id)
continue;
if (bus || slot) {
Expand Down

0 comments on commit 5e8f201

Please sign in to comment.