]> git.baikalelectronics.ru Git - kernel.git/commit
staging: kpc2000: simplify error handling in kp2000_pcie_probe
authorSimon Sandström <simon@nikanor.nu>
Wed, 19 Jun 2019 06:36:07 +0000 (08:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2019 12:39:16 +0000 (14:39 +0200)
commit11d9b123294ccbb6c6c121bc3fa54c33b769eb00
tree81da861f9cf9c00c272730ee43412e479143c693
parent34444bc8598c84c03d95ddb584c290c0e2674fa0
staging: kpc2000: simplify error handling in kp2000_pcie_probe

We can get rid of a few iounmaps in the middle of the function by
re-ordering the error handling labels and adding two new labels.

Signed-off-by: Simon Sandström <simon@nikanor.nu>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000/core.c