staging: comedi: jr3_pci: return 'result' from comedi_pci_enable instead of -EIO
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 5 Nov 2012 05:19:40 +0000 (13:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 19:16:01 +0000 (11:16 -0800)
commit4ecd6228acc8c3bb5c7d18bae57ce13685936e6d
treef50d7859e56bd0865162b394622935f87aa76a52
parent9f488ba8633fe77910ea0ba80ec762d9c34af1b6
staging: comedi: jr3_pci: return 'result' from comedi_pci_enable instead of -EIO

Fix a smatch warning:
drivers/staging/comedi/drivers/jr3_pci.c:793 jr3_pci_auto_attach() info: why not propagate 'result' from comedi_pci_enable() instead of -5?

CC: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/jr3_pci.c