]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: adl_pci6208: pass on the error code from comedi_pci_enable
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 27 Jun 2012 21:59:19 +0000 (14:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:40:04 +0000 (15:40 -0700)
commit9d639b6b252759e6333aa576645f25624c4b9a99
tree6ea9bb3d0b213696ab96b0cf599223be5fbee13c
parentdb7c275d9ffd2c58648b1bf023ab62cf993ddfac
staging: comedi: adl_pci6208: pass on the error code from comedi_pci_enable

Return the actual error code from comedi_pci_enable instead of
assuming -EIO on failure. Also, shorten the local variable name 'retval'
to 'ret'.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci6208.c