Re: [PATCH V3 3/3] Assemble: cleanup the failure path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/22/2018 04:12 AM, Guoqing Jiang wrote:
> There are some failure paths which share common codes
> before return, so simplify them by move common codes
> to the end of function, and just goto out in case
> failure happened.
> 
> Reviewed-by: NeilBrown <neilb@xxxxxxxx>
> Signed-off-by: Guoqing Jiang <gqjiang@xxxxxxxx>
> ---
>  Assemble.c | 62 ++++++++++++++++++++++----------------------------------------
>  1 file changed, 22 insertions(+), 40 deletions(-)

Looks like you got rid of most of the if (locked) cases with this one.

Applied!

Thanks,
Jes

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux