iscsi: fix declaration after statement

Change-Id: Iee88b34165b3530c52301511ff1bd13c2680ea55
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/367123
Tested-by: 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>
This commit is contained in:
Daniel Verkamp 2017-06-26 12:17:36 -07:00
parent 23d3f49e6c
commit 9b509a2944

View File

@ -241,6 +241,9 @@ spdk_iscsi_config_dump_target_nodes(FILE *fp)
for (t = 0; t < MAX_ISCSI_TARGET_NODE; t++) { for (t = 0; t < MAX_ISCSI_TARGET_NODE; t++) {
int idx; int idx;
const char *authmethod = "None";
char authgroup[32] = "None";
const char *usedigest = "Auto";
target = g_spdk_iscsi.target[t]; target = g_spdk_iscsi.target[t];
if (NULL == target) continue; if (NULL == target) continue;
@ -260,10 +263,6 @@ spdk_iscsi_config_dump_target_nodes(FILE *fp)
target->map[m].ig->tag); target->map[m].ig->tag);
} }
const char *authmethod = "None";
char authgroup[32] = "None";
const char *usedigest = "Auto";
if (target->auth_chap_disabled) if (target->auth_chap_disabled)
authmethod = "None"; authmethod = "None";
else if (!target->auth_chap_required) else if (!target->auth_chap_required)