+7
−44
Loading
The possible cause of failure in spdk_iscsi_reject() is only -ENOMEM, and SPDK_SUCCESS is 0 and SPDK_ISCSI_CONNECTION_FATAL is -1. Hence just calling spdk_iscsi_reject() as return value will be enough. Besides, one redundant return path was found and fixed in this patch too. Change-Id: I37647a9ef6d0173d68d1017443d5a1d5604c1e64 Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/436644 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com>