diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-05-29 21:54:29 +0200 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-06-02 17:07:26 +0530 |
commit | f30b18944e900174bfa9a372ed9d344256891e3a (patch) | |
tree | f2f17c1afd5d05a8cc1a951d0b804660db3b7747 /lib/sbi/sbi_init.c | |
parent | 66c4fca532288c750681f33339016772b0ffbf2a (diff) |
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_init.c')
-rw-r--r-- | lib/sbi/sbi_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c index 3f44a2b..b158314 100644 --- a/lib/sbi/sbi_init.c +++ b/lib/sbi/sbi_init.c @@ -233,8 +233,7 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid) if (rc) sbi_hart_hang(); - init_count_offset = sbi_scratch_alloc_offset(__SIZEOF_POINTER__, - "INIT_COUNT"); + init_count_offset = sbi_scratch_alloc_offset(__SIZEOF_POINTER__); if (!init_count_offset) sbi_hart_hang(); |