Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354233
b: refs/heads/master
c: 90967d6
h: refs/heads/master
i:
  354231: 5a41f03
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jan 30, 2013
1 parent 0477add commit f92cc1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 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: b8319710de2d3f14e11c2d951d238797e2aa489d
refs/heads/master: 90967d66269f20f24e8465121dadb99e51ad1f64
30 changes: 3 additions & 27 deletions trunk/drivers/staging/comedi/drivers/quatech_daqp_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,37 +238,13 @@ static int daqp_ai_cancel(struct comedi_device *dev, struct comedi_subdevice *s)
static enum irqreturn daqp_interrupt(int irq, void *dev_id)
{
struct local_info_t *local = dev_id;
struct comedi_device *dev;
struct comedi_subdevice *s;
struct comedi_device *dev = local ? local->dev : NULL;
struct comedi_subdevice *s = local ? local->s : NULL;
int loop_limit = 10000;
int status;

if (local == NULL) {
pr_warn("irq %d for unknown device.\n", irq);
return IRQ_NONE;
}

dev = local->dev;
if (dev == NULL) {
pr_warn("NULL comedi_device.\n");
return IRQ_NONE;
}

if (!dev->attached) {
pr_warn("struct comedi_device not yet attached.\n");
if (!dev || !dev->attached || !s || s->private != local)
return IRQ_NONE;
}

s = local->s;
if (s == NULL) {
pr_warn("NULL comedi_subdevice.\n");
return IRQ_NONE;
}

if (s->private != local) {
pr_warn("invalid comedi_subdevice.\n");
return IRQ_NONE;
}

switch (local->interrupt_mode) {

Expand Down

0 comments on commit f92cc1a

Please sign in to comment.