ste_dma40: Less checks in d40_hw_detect_init() after error detection
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 17 Sep 2016 12:10:47 +0000 (14:10 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 17:36:17 +0000 (23:06 +0530)
commitf4534adbcfbb38a21691ca8dfdc8750689d8bcc9
tree6ef8dd7a60f37b78d969d8dafac6b2fcec4b1126
parent28c01058b28527be2a81e8ba2a53437910defbf3
ste_dma40: Less checks in d40_hw_detect_init() after error detection

Four checks could be repeated by the d40_hw_detect_init() function during
error handling even if the passed variables contained a null pointer.

* Adjust jump targets according to the Linux coding style convention.

* Call the interface "iounmap" only once at the end.

* Delete the repeated checks which became unnecessary with
  this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c