From 5230750c55030df6b6025c790aa0246efe45c108 Mon Sep 17 00:00:00 2001 From: Tao Li Date: Mon, 1 Jul 2019 09:52:19 +0800 Subject: [PATCH] Remove the unused assignment for uuid variable Because the uuid is not used in this function, so we should remove the codes related to uuid. Change-Id: I47c748474e6d3aa5850239859bd021b4f6d2e203 Story: 2006065 Task: 34780 Signed-off-by: Tao Li --- mtce/src/maintenance/mtcHttpSvr.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mtce/src/maintenance/mtcHttpSvr.cpp b/mtce/src/maintenance/mtcHttpSvr.cpp index 309a11ce..e65f86b6 100644 --- a/mtce/src/maintenance/mtcHttpSvr.cpp +++ b/mtce/src/maintenance/mtcHttpSvr.cpp @@ -306,17 +306,15 @@ string mtcHttpSvr_vim_req ( char * buffer_ptr, nodeLinkClass * obj_ptr = get_mtcInv_ptr () ; string response = "" ; string severity = "" ; - string uuid = "" ; string hostname = "" ; int rc1 = jsonUtil_get_key_val ( buffer_ptr, MTC_JSON_SEVERITY, severity ); - int rc2 = jsonUtil_get_key_val ( buffer_ptr, MTC_JSON_INV_NAME, uuid ); - int rc3 = jsonUtil_get_key_val ( buffer_ptr, MTC_JSON_INV_NAME, hostname ); + int rc2 = jsonUtil_get_key_val ( buffer_ptr, MTC_JSON_INV_NAME, hostname ); jlog ("%s '%s' request\n", hostname.c_str(), getHttpCmdType_str(http_cmd)); - if ( rc1 | rc2 | rc3 ) + if ( rc1 | rc2 ) { - wlog ("Failed to parse command key values (%d:%d:%d)\n", rc1, rc2, rc3 ); + wlog ("Failed to parse command key values (%d:%d)\n", rc1, rc2); response = "{" ; response.append (" \"status\" : \"fail\""); response.append (",\"reason\" : \"command parse error\"");