+4
−6
Loading
For error case, just set ctrlr->num_aers to 0, and then the loop won't execute at all. This avoids an extra call to nvme_ctrlr_set_state() and simplifies the code a bit. Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: Iff7bbf6e03d18b5f553b9e8527b4c803db583917 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10330 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot 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>