@@ -87,7 +87,6 @@ void GS_init(void)
{
static bool curInit;
- if (curInit == false) {
+ if (curInit == false)
curInit = MEM_Init(); /* which can't fail currently. */
- }
}
@@ -1044,11 +1044,10 @@ DSP_STATUS CMM_XlatorDelete(struct CMM_XLATOROBJECT *hXlator, bool bForce)
DBC_Require(cRefs > 0);
- if (MEM_IsValidHandle(pXlator, CMMXLATESIGNATURE)) {
+ if (MEM_IsValidHandle(pXlator, CMMXLATESIGNATURE))
MEM_FreeObject(pXlator);
- } else {
+ else
status = DSP_EHANDLE;
- }
return status;
}
@@ -2116,9 +2116,9 @@ bool NODE_Init(void)
*/
void NODE_OnExit(struct NODE_OBJECT *hNode, s32 nStatus)
{
- if (!MEM_IsValidHandle(hNode, NODE_SIGNATURE)) {
+ if (!MEM_IsValidHandle(hNode, NODE_SIGNATURE))
return;
- }
+
/* Set node state to done */
NODE_SetState(hNode, NODE_DONE);
hNode->nExitStatus = nStatus;
@@ -152,13 +152,13 @@ DSP_STATUS CFG_GetDSPResources(struct CFG_DEVNODE *hDevNode,
"Entered CFG_GetDSPResources, args: "
"\n\thDevNode: 0x%x\n\tpDSPResTable: 0x%x\n",
hDevNode, pDSPResTable);
- if (!hDevNode) {
+ if (!hDevNode)
status = CFG_E_INVALIDHDEVNODE;
- } else if (!pDSPResTable) {
+ else if (!pDSPResTable)
status = CFG_E_INVALIDPOINTER;
- } else {
- status = REG_GetValue(DSPRESOURCES, (u8 *)pDSPResTable, &dwResSize);
- }
+ else
+ status = REG_GetValue(DSPRESOURCES, (u8 *)pDSPResTable,
+ &dwResSize);
if (DSP_SUCCEEDED(status)) {
GT_0trace(CFG_debugMask, GT_1CLASS,
"CFG_GetDSPResources SUCCESS\n");
@@ -596,9 +596,8 @@ func_cont1:
aEProc[ndx].ulGppVa,
aEProc[ndx].ulDspVa *
hIOMgr->uWordSize, pgSize[i]);
- if (DSP_FAILED(status)) {
+ if (DSP_FAILED(status))
goto func_end;
- }
}
paCurr += pgSize[i];
vaCurr += pgSize[i];