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

Commit 21a9eb8e authored by Elliot Berman's avatar Elliot Berman
Browse files

haven: rm: Remove pr_err on get_vmid



If RM is not set up, drivers such as ion may be frequently calling
hh_rm_get_vmid and causing a console message that a VMID could not be
found. Drivers should be correctly handling the error case, so remove
the pr_err here to not fill console messages.

Change-Id: I2026d9481b6d58a89fb2f546bf76b29566e5f3d7
Signed-off-by: default avatarElliot Berman <eberman@codeaurora.org>
parent 18175354
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -48,11 +48,8 @@ int hh_rm_get_vmid(enum hh_vm_names vm_name, hh_vmid_t *vmid)
{
	hh_vmid_t _vmid = hh_vm_table[vm_name].vmid;

	if (!_vmid && vm_name != HH_SELF_VM) {
		pr_err("%s: No vmid associated with the vm%d\n", __func__,
			vm_name);
	if (!_vmid && vm_name != HH_SELF_VM)
		return -EINVAL;
	}

	if (vmid)
		*vmid = _vmid;