This also simplifies the code. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I32ca5e24779dc60e0ff4cf2610951cce55d06c75 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6622 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>