conn->target is initialized to NULL in iscsi_op_login_phase_none and then configured in iscsi_op_login_session_normal. Hence subsequent references to target node can be done by conn->target and related local variables can be removed. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I68b94cb8e136522ef1e0ed74c0035ec2b666bb9e Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463700 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
conn.c | ||
init_grp.c | ||
iscsi.c | ||
param.c | ||
portal_grp.c | ||
tgt_node.c | ||
common.c | ||
Makefile |