+32
−56
Loading
delte duplicate code and use goto to make code reuse. Signed-off-by:sunshihao <sunshihao@huawei.com> Change-Id: Ib5eae0d31699fa7e3a0e6147b1572d383208df0b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5052 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>