TZ: Fix build err

Build err:
/localrepo/hudson/workspace/S1SR32_rhode-g_user_mr_r-qsm2020_release-keys_derivative_cid_gc/platform/kernel/msm-4.19/drivers/firmware/qcom/tz_log.c:1146:35: warning: comparison between pointer and integer ('int *' and 'int') [-Wpointer-integer-compare]
error, forbidden warning: tz_log.c:1146

Change-Id: Ic4cab5150e37f4b466db6e01e4cdf6bbca6e35c5
Signed-off-by: xiewen3 <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2167117
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
xiewen3 authored and Gilberto Gambugge committed 2023-06-01 00:48:51 -03:00
1 parent 8fd9cfc563
commit e7cd7474ca
1 file changed
+1 -1
+1 -1
View File
@@ -1141,7 +1141,7 @@ static ssize_t tzdbgfs_read_unencrypted(struct file *file, char __user *buf,
#ifdef CONFIG_DEBUG_FS
int tz_id = *(int *)(file->private_data);
#else
int *tz_id = ((struct seq_file *)file->private_data)->private;
int tz_id = *(int *)((struct seq_file *)file->private_data)->private;
#endif
if (tz_id == TZDBG_BOOT || tz_id == TZDBG_RESET ||