Return error only on failure else success. CRs-Fixed: 2204093 Change-Id: I616dbf41fb297f16b63d8108eff699703ea94177 Signed-off-by: Vignesh Kulothungan <[email protected]>
@@ -2051,7 +2051,10 @@ int __init rtac_init(void)
kzfree(rtac_asm_buffer);
kzfree(rtac_afe_buffer);
kzfree(rtac_voice_buffer);
+ goto nomem;
}
+
+ return 0;
nomem:
return -ENOMEM;