From: Andre Noll Date: Tue, 16 Jun 2009 06:47:36 +0000 (+1000) Subject: md: raid0: Allocate all buffers for the raid0 configuration in one function. X-Git-Tag: v2.6.31-rc1~143^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed7b00380d957ec770b5e90380d012c6062c13cc;p=pandora-kernel.git md: raid0: Allocate all buffers for the raid0 configuration in one function. Currently the raid0 configuration is allocated in raid0_run() while the buffers for the strip_zone and the dev_list arrays are allocated in create_strip_zones(). On errors, all three buffers are freed in raid0_run(). It's easier and more readable to do the allocation and cleanup within a single function. So move that code into create_strip_zones(). Signed-off-by: Andre Noll Signed-off-by: NeilBrown --- Reading git-diff-tree failed