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: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
Elliot Berman 2020-04-07 14:48:33 -07:00
commit 21a9eb8e4b

View file

@ -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;