From 21a9eb8e4b48d58f955327a9b6d4e665a6429bd6 Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Tue, 7 Apr 2020 14:48:33 -0700 Subject: [PATCH] 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 --- drivers/virt/haven/hh_rm_iface.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/virt/haven/hh_rm_iface.c b/drivers/virt/haven/hh_rm_iface.c index 1737e049fc3a..5abfea564f50 100644 --- a/drivers/virt/haven/hh_rm_iface.c +++ b/drivers/virt/haven/hh_rm_iface.c @@ -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;