Staging: comedi: unlock on error in usbdux_ao_inttrig()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 30 Nov 2011 08:42:21 +0000 (11:42 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Dec 2011 20:29:39 +0000 (12:29 -0800)
commitd6610a502738e23aab5418e82c024be201e13f02
tree7943e774152cce493b4514cc7697a56ec108b1de
parent2d2c880f8c16f4047cb642a5843ca6fa56f0d2a6
Staging: comedi: unlock on error in usbdux_ao_inttrig()

If we had an invalid trignum (anything other than zero is invalid) then
we returned without unlocking.  I've modified this function to just have
one return point.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/usbduxsigma.c