Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354237
b: refs/heads/master
c: c65c64d
h: refs/heads/master
i:
  354235: dd63a8b
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jan 30, 2013
1 parent feca577 commit 5fddf88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: e23fe9a1bf80eee77d4cc97504bcec0c40ed973d
refs/heads/master: c65c64d0f0b269b1239fdce253fd4717281cc98d
15 changes: 8 additions & 7 deletions trunk/drivers/staging/comedi/drivers/quatech_daqp_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,15 +733,16 @@ static int daqp_do_insn_write(struct comedi_device *dev,

static int daqp_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
int ret;
struct local_info_t *local = dev_table[it->options[0]];
struct local_info_t *local;
struct comedi_subdevice *s;
int ret;

if (it->options[0] < 0 || it->options[0] >= MAX_DEV || !local) {
dev_err(dev->class_dev, "No such daqp device %d\n",
it->options[0]);
return -EIO;
}
if (it->options[0] < 0 || it->options[0] >= MAX_DEV)
return -ENODEV;

local = dev_table[it->options[0]];
if (!local)
return -ENODEV;

/* Typically brittle code that I don't completely understand,
* but "it works on my card". The intent is to pull the model
Expand Down

0 comments on commit 5fddf88

Please sign in to comment.