Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317596
b: refs/heads/master
c: 1efc5d5
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jun 26, 2012
1 parent 73804c6 commit 1bc8f4c
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: 16a8cdfc13526983f6c55e35c09bbe091ac11e96
refs/heads/master: 1efc5d53b7c1355a3491061587153c8f89613aaa
4 changes: 1 addition & 3 deletions trunk/drivers/staging/comedi/drivers/cb_das16_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ static const struct das16cs_board das16cs_boards[] = {
},
};

#define n_boards ARRAY_SIZE(das16cs_boards)

struct das16cs_private {
struct pcmcia_device *link;

Expand Down Expand Up @@ -467,7 +465,7 @@ static const struct das16cs_board *das16cs_probe(struct comedi_device *dev,
{
int i;

for (i = 0; i < n_boards; i++) {
for (i = 0; i < ARRAY_SIZE(das16cs_boards); i++) {
if (das16cs_boards[i].device_id == link->card_id)
return das16cs_boards + i;
}
Expand Down

0 comments on commit 1bc8f4c

Please sign in to comment.