Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21069793 authored by Vignesh Kulothungan's avatar Vignesh Kulothungan Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarVignesh Kulothungan <vigneshk@codeaurora.org>
parent 1b710779
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
}