iscsi: fix unused variable warning in release build

Change-Id: I9ef2365a66cd582c4016c081f04ef0a4e8d9109a
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-11-16 15:06:42 -07:00
parent fb08791096
commit 56517c7236

View File

@ -368,10 +368,9 @@ spdk_iscsi_portal_grp_create_from_configfile(struct spdk_conf_section *sp)
const char *val; const char *val;
char *label, *portal; char *label, *portal;
int portals = 0, i = 0, rc = 0; int portals = 0, i = 0, rc = 0;
int tag = spdk_conf_section_get_num(sp);
SPDK_TRACELOG(SPDK_TRACE_DEBUG, "add portal group (from config file) %d\n", SPDK_TRACELOG(SPDK_TRACE_DEBUG, "add portal group (from config file) %d\n",
tag); spdk_conf_section_get_num(sp));
val = spdk_conf_section_get_val(sp, "Comment"); val = spdk_conf_section_get_val(sp, "Comment");
if (val != NULL) { if (val != NULL) {
@ -426,7 +425,7 @@ spdk_iscsi_portal_grp_create_from_configfile(struct spdk_conf_section *sp)
SPDK_TRACELOG(SPDK_TRACE_DEBUG, SPDK_TRACELOG(SPDK_TRACE_DEBUG,
"RIndex=%d, Host=%s, Port=%s, Tag=%d\n", "RIndex=%d, Host=%s, Port=%s, Tag=%d\n",
i, p->host, p->port, tag); i, p->host, p->port, spdk_conf_section_get_num(sp));
spdk_iscsi_portal_grp_add_portal(pg, p); spdk_iscsi_portal_grp_add_portal(pg, p);
} }