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)
commita50185cbb383f29543a86ff238fff13ec850dbf9
tree81da861f9cf9c00c272730ee43412e479143c693
parent0234961dbc1816732025b946ebccf64f08e42b0d
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