dm mpath: simplify failure path of dm_multipath_init()
authorJohannes Thumshirn <morbidrsa@gmail.com>
Sun, 11 Jan 2015 11:45:23 +0000 (12:45 +0100)
committerMike Snitzer <snitzer@redhat.com>
Mon, 9 Feb 2015 18:06:49 +0000 (13:06 -0500)
commitff658e9c1aae9a84dd06d46f847dc0cd2bf0dd11
tree22a1811d1087f6581f4bedbb535626779570d7c8
parent9cb1397d585c28c2acff06a6002fc2c8db19a80d
dm mpath: simplify failure path of dm_multipath_init()

Currently the cleanup of all error cases are open-coded.  Introduce a
common exit path and labels.

Signed-off-by: Johannes Thumshirn <morbidrsa@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c