From f30b18944e900174bfa9a372ed9d344256891e3a Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sat, 29 May 2021 21:54:29 +0200 Subject: lib: sbi_scratch: remove owner from sbi_scratch_alloc_offset The parameter owner of function sbi_scratch_alloc_offset() is never used. The scratch memory is small. We should not use it for debug information in future. Hence eliminate the parameter. Signed-off-by: Heinrich Schuchardt Reviewed-by: Xiang W Reviewed-by: Anup Patel --- lib/sbi/sbi_timer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/sbi/sbi_timer.c') diff --git a/lib/sbi/sbi_timer.c b/lib/sbi/sbi_timer.c index 63e8ea9..77d6f95 100644 --- a/lib/sbi/sbi_timer.c +++ b/lib/sbi/sbi_timer.c @@ -121,8 +121,7 @@ int sbi_timer_init(struct sbi_scratch *scratch, bool cold_boot) const struct sbi_platform *plat = sbi_platform_ptr(scratch); if (cold_boot) { - time_delta_off = sbi_scratch_alloc_offset(sizeof(*time_delta), - "TIME_DELTA"); + time_delta_off = sbi_scratch_alloc_offset(sizeof(*time_delta)); if (!time_delta_off) return SBI_ENOMEM; -- cgit v1.2.3