summaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_timer.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-05-29 22:54:29 +0300
committerAnup Patel <anup@brainfault.org>2021-06-02 14:37:26 +0300
commitf30b18944e900174bfa9a372ed9d344256891e3a (patch)
treef2f17c1afd5d05a8cc1a951d0b804660db3b7747 /lib/sbi/sbi_timer.c
parent66c4fca532288c750681f33339016772b0ffbf2a (diff)
downloadopensbi-f30b18944e900174bfa9a372ed9d344256891e3a.tar.xz
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 <xypron.glpk@gmx.de> Reviewed-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_timer.c')
-rw-r--r--lib/sbi/sbi_timer.c3
1 files changed, 1 insertions, 2 deletions
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;