Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318124
b: refs/heads/master
c: bdc1afa
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 19, 2012
1 parent 2e7d266 commit 00194d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 6e4996bcd82453e43b324e53f5353e5c0fe625a2
refs/heads/master: bdc1afa388b89285d68de2ae423dd0d25cfc1d62
4 changes: 1 addition & 3 deletions trunk/drivers/staging/comedi/drivers/ke_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ static const struct cnt_board_struct cnt_boards[] = {
.cnt_bits = 24}
};

#define cnt_board_nbr (sizeof(cnt_boards)/sizeof(struct cnt_board_struct))

/*-- counter write ----------------------------------------------------------*/

/* This should be used only for resetting the counters; maybe it is better
Expand Down Expand Up @@ -132,7 +130,7 @@ static struct pci_dev *cnt_find_pci_dev(struct comedi_device *dev,
if (pcidev->vendor != PCI_VENDOR_ID_KOLTER)
continue;

for (i = 0; i < cnt_board_nbr; i++) {
for (i = 0; i < ARRAY_SIZE(cnt_boards); i++) {
board = &cnt_boards[i];
if (board->device_id != pcidev->device)
continue;
Expand Down

0 comments on commit 00194d8

Please sign in to comment.