commit | a5ed6585c102e0cb502080f4265ace9ad1bbbdcf | [log] [tgz] |
---|---|---|
author | Tom Joseph <rushtotom@gmail.com> | Thu Jun 17 22:08:47 2021 -0700 |
committer | Tom Joseph <rushtotom@gmail.com> | Tue Jun 22 01:58:19 2021 +0000 |
tree | aa0653d046c503c6788a066b37b82202c07da015 | |
parent | ea72f240bbb734b0faa8f9b29056eca5a163c1de [diff] [blame] |
requester: Enhance the PLDM requester code - Free the instance id on error paths - Make the conditional checks consistent - Make the unit tests robust Signed-off-by: Tom Joseph <rushtotom@gmail.com> Change-Id: Ieb70da2820ab818c36f5bf874a602fb090659836
diff --git a/requester/request.hpp b/requester/request.hpp index 4097e10..2d74147 100644 --- a/requester/request.hpp +++ b/requester/request.hpp
@@ -58,7 +58,7 @@ int start() { auto rc = send(); - if (rc != PLDM_SUCCESS) + if (rc) { return rc; }