summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-09-06 01:38:11 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-06 03:03:55 (GMT)
commit77d2f7c24725e3caa82492dd3d1cbd466b8a0abf (patch)
treeb72d640d2d9185d42896a06aac380b97f4afe51b
parent92cfef5d90148f1a91fba528971ed6ae39b1c14b (diff)
downloadlinux-fsl-qoriq-77d2f7c24725e3caa82492dd3d1cbd466b8a0abf.tar.xz
staging: comedi: das800: 'dev->subdevices + 0' is already known
There is no need to calculate the subdevice for the call to das800_cancel. The variable 's' in this function is set to the 'dev->read_subdev' which is the same as 'dev->subdevices + 0'. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/das800.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/das800.c b/drivers/staging/comedi/drivers/das800.c
index a0959a5..834054d 100644
--- a/drivers/staging/comedi/drivers/das800.c
+++ b/drivers/staging/comedi/drivers/das800.c
@@ -435,7 +435,7 @@ static irqreturn_t das800_interrupt(int irq, void *d)
if (fifo_overflow) {
spin_unlock_irqrestore(&dev->spinlock, irq_flags);
comedi_error(dev, "DAS800 FIFO overflow");
- das800_cancel(dev, dev->subdevices + 0);
+ das800_cancel(dev, s);
async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA;
comedi_event(dev, s);
async->events = 0;