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_hart.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_hart.c')
-rw-r--r-- | lib/sbi/sbi_hart.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c index de59b14..56878b4 100644 --- a/lib/sbi/sbi_hart.c +++ b/lib/sbi/sbi_hart.c @@ -451,8 +451,7 @@ int sbi_hart_init(struct sbi_scratch *scratch, bool cold_boot) sbi_hart_expected_trap = &__sbi_expected_trap_hext; hart_features_offset = sbi_scratch_alloc_offset( - sizeof(struct hart_features), - "HART_FEATURES"); + sizeof(struct hart_features)); if (!hart_features_offset) return SBI_ENOMEM; } |