rtac: Fix return value of misc_register in init
Return error only on failure else success. CRs-Fixed: 2204093 Change-Id: I616dbf41fb297f16b63d8108eff699703ea94177 Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

szülő
1b71077925
commit
2106979395
@@ -2051,7 +2051,10 @@ int __init rtac_init(void)
|
|||||||
kzfree(rtac_asm_buffer);
|
kzfree(rtac_asm_buffer);
|
||||||
kzfree(rtac_afe_buffer);
|
kzfree(rtac_afe_buffer);
|
||||||
kzfree(rtac_voice_buffer);
|
kzfree(rtac_voice_buffer);
|
||||||
|
goto nomem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
nomem:
|
nomem:
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user