remove IPMI_CC_OK

Since IPMI_CC_OK declared in api.h has been gradually deprecated,
this submission will use ipmi::ccSuccess in api.hpp instead.

https://gerrit.openbmc.org/c/openbmc/phosphor-host-ipmid/+/78568

Change-Id: I833cc854112c5faac009639b044b843ec36f18de
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/command/rakp12.cpp b/command/rakp12.cpp
index 5c674ac..2a9f4d0 100644
--- a/command/rakp12.cpp
+++ b/command/rakp12.cpp
@@ -223,10 +223,11 @@
 
     uint8_t chNum = static_cast<uint8_t>(getInterfaceIndex());
     // Get channel based access information
-    if ((ipmi::ipmiUserGetPrivilegeAccess(
-             userId, chNum, session->sessionUserPrivAccess) != IPMI_CC_OK) ||
+    if ((ipmi::ipmiUserGetPrivilegeAccess(userId, chNum,
+                                          session->sessionUserPrivAccess) !=
+         ipmi::ccSuccess) ||
         (ipmi::getChannelAccessData(chNum, session->sessionChannelAccess) !=
-         IPMI_CC_OK))
+         ipmi::ccSuccess))
     {
         response->rmcpStatusCode =
             static_cast<uint8_t>(RAKP_ReturnCode::INACTIVE_ROLE);