You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by su...@apache.org on 2014/12/11 05:16:40 UTC

trafficserver git commit: fix minor coverity errors

Repository: trafficserver
Updated Branches:
  refs/heads/master 6a8764915 -> f351ed2cf


fix minor coverity errors


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/f351ed2c
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f351ed2c
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f351ed2c

Branch: refs/heads/master
Commit: f351ed2cf23489331fcdfb0c3849667ff790a7e7
Parents: 6a87649
Author: Sudheer Vinukonda <su...@yahoo-inc.com>
Authored: Thu Dec 11 04:15:46 2014 +0000
Committer: Sudheer Vinukonda <su...@yahoo-inc.com>
Committed: Thu Dec 11 04:15:46 2014 +0000

----------------------------------------------------------------------
 mgmt/api/CoreAPIRemote.cc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f351ed2c/mgmt/api/CoreAPIRemote.cc
----------------------------------------------------------------------
diff --git a/mgmt/api/CoreAPIRemote.cc b/mgmt/api/CoreAPIRemote.cc
index 8ddc45b..11b647b 100644
--- a/mgmt/api/CoreAPIRemote.cc
+++ b/mgmt/api/CoreAPIRemote.cc
@@ -300,7 +300,7 @@ DiagnosticMessage(TSDiagsT mode, const char *fmt, va_list ap)
   // format the diag message now so it can be sent
   // vsnprintf does not compile on DEC
   vsnprintf(diag_msg, MAX_BUF_SIZE - 1, fmt, ap);
-  MGMTAPI_SEND_MESSAGE(main_socket_fd, DIAGS, &optype, &level, &msg);
+  (void) MGMTAPI_SEND_MESSAGE(main_socket_fd, DIAGS, &optype, &level, &msg);
 }
 
 /***************************************************************************
@@ -441,9 +441,6 @@ Bounce(unsigned options)
   MgmtMarshallInt oval = options;
 
   ret = MGMTAPI_SEND_MESSAGE(main_socket_fd, BOUNCE, &optype, &oval);
-  if (ret != TS_ERR_OKAY) {
-    return ret;
-  }
 
   return (ret == TS_ERR_OKAY) ? parse_generic_response(BOUNCE, main_socket_fd) : ret;
 }