IB/mthca: Clean up error unwind flow in mthca_reset()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 23 Jul 2016 09:28:30 +0000 (11:28 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 4 Aug 2016 01:03:35 +0000 (21:03 -0400)
commit380bae5bf2fb6db2cde514e4878a7964dc06c1fa
treec2b98847d7245e38e552660f0e3c476d604c81fa
parent3491ab63b45ea9b485683574081ed8535d42f2da
IB/mthca: Clean up error unwind flow in mthca_reset()

The kfree() function was called in a few cases by the mthca_reset()
function during error handling even if the passed variables "bridge_header"
and "hca_header" contained a null pointer.

Adjust jump targets according to the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mthca/mthca_reset.c