dm mpath: remove extra nesting in map function
authorMike Snitzer <snitzer@redhat.com>
Fri, 28 Feb 2014 14:33:48 +0000 (15:33 +0100)
committerMike Snitzer <snitzer@redhat.com>
Thu, 27 Mar 2014 20:56:25 +0000 (16:56 -0400)
commit9bf59a611a5eb479f321fae34adc9f948de0a42f
tree0ad88aa4377521d9c082b1a5251e00fa01bd987d
parent36fcffcc6500228efdfaf3a36761dd57a38366e3
dm mpath: remove extra nesting in map function

Return early for case when no path exists, and when the
pathgroup isn't ready. This eliminates the need for
extra nesting for the the common case.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
drivers/md/dm-mpath.c