+26
−19
Loading
Switch is more natural than if/else for dealing with enumeration type, also logic under specific cases is revered in the way errors are handled under if statements. Change-Id: I0a03504ddfa0dab4e9395853ce9e0328450fb3d6 Signed-off-by:Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22605 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>