aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fsl-mc
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-06-16 19:35:35 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-24 00:37:07 +0800
commit125178d1ebd6d76a5fb152cfb3cd50a3316cf3ba (patch)
treef3f8409d2baa88be0773428354edf0b4ca3bf80d /drivers/staging/fsl-mc
parentstaging: comedi: fix clean-up of comedi_class in comedi_init() (diff)
downloadlinux-dev-125178d1ebd6d76a5fb152cfb3cd50a3316cf3ba.tar.xz
linux-dev-125178d1ebd6d76a5fb152cfb3cd50a3316cf3ba.zip
staging: comedi: use centralized error clean-up in comedi_init()
Centralize the "clean-up on error" handling in `comedi_init()` using `goto` statements. Also change some of the explicit `-EIO` return values to the error return values from the failing functions as there is no good reason to use `-EIO` explicitly. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-mc')
0 files changed, 0 insertions, 0 deletions