staging: comedi: das800: 'dev->subdevices + 0' is already known
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:38:11 +0000 (18:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:03:55 +0000 (20:03 -0700)
commit77d2f7c24725e3caa82492dd3d1cbd466b8a0abf
treeb72d640d2d9185d42896a06aac380b97f4afe51b
parent92cfef5d90148f1a91fba528971ed6ae39b1c14b
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>
drivers/staging/comedi/drivers/das800.c