Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317106
b: refs/heads/master
c: 1c9de58
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Jun 5, 2012
1 parent 242538b commit c599dc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 5254cbe795c3bb9ef28d61a474d707385fc87178
refs/heads/master: 1c9de58acc06cba56b5f1bd17a5a74a66427f8b1
11 changes: 5 additions & 6 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,13 @@ static int postconfig(struct comedi_device *dev)
* that register their supported board names */
static void *comedi_recognize(struct comedi_driver *driv, const char *name)
{
unsigned i;
const char *const *name_ptr = driv->board_name;
char **name_ptr = (char **)driv->board_name;
int i;

for (i = 0; i < driv->num_names; i++) {
if (strcmp(*name_ptr, name) == 0)
return (void *)name_ptr;
name_ptr =
(const char *const *)((const char *)name_ptr +
driv->offset);
return name_ptr;
name_ptr = (void *)name_ptr + driv->offset;
}

return NULL;
Expand Down

0 comments on commit c599dc3

Please sign in to comment.