Commit 9b509a29 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

iscsi: fix declaration after statement



Change-Id: Iee88b34165b3530c52301511ff1bd13c2680ea55
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/367123


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 23d3f49e
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -241,6 +241,9 @@ spdk_iscsi_config_dump_target_nodes(FILE *fp)

	for (t = 0; t < MAX_ISCSI_TARGET_NODE; t++) {
		int idx;
		const char *authmethod = "None";
		char authgroup[32] = "None";
		const char *usedigest = "Auto";

		target = g_spdk_iscsi.target[t];
		if (NULL == target) continue;
@@ -260,10 +263,6 @@ spdk_iscsi_config_dump_target_nodes(FILE *fp)
				target->map[m].ig->tag);
		}

		const char *authmethod = "None";
		char authgroup[32] = "None";
		const char *usedigest = "Auto";

		if (target->auth_chap_disabled)
			authmethod = "None";
		else if (!target->auth_chap_required)