From 3ba06afa44becfae6b6791ce97dc457dbdb5bdee Mon Sep 17 00:00:00 2001 From: Monika Singh Date: Mon, 7 Dec 2020 09:15:17 +0530 Subject: [PATCH] firmware: qcom: tzbsp_diag info not required for qsee_log In case of Qsee_log we are not using the tzbsp_diag_buf so there is no need to copy that. Change-Id: Iabffd1708507e16ef8d75102637fd45bb7182549 Signed-off-by: Monika Singh --- drivers/firmware/qcom/tz_log.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/firmware/qcom/tz_log.c b/drivers/firmware/qcom/tz_log.c index a767bd450b89..12bce5de2bbe 100644 --- a/drivers/firmware/qcom/tz_log.c +++ b/drivers/firmware/qcom/tz_log.c @@ -1089,8 +1089,7 @@ static ssize_t tzdbgfs_read_unencrypted(struct file *file, char __user *buf, if (tz_id == TZDBG_BOOT || tz_id == TZDBG_RESET || tz_id == TZDBG_INTERRUPT || tz_id == TZDBG_GENERAL || - tz_id == TZDBG_VMID || tz_id == TZDBG_LOG || - tz_id == TZDBG_QSEE_LOG) + tz_id == TZDBG_VMID || tz_id == TZDBG_LOG) memcpy_fromio((void *)tzdbg.diag_buf, tzdbg.virt_iobase, debug_rw_buf_size);