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_hsm.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_hsm.c')
-rw-r--r-- | lib/sbi/sbi_hsm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sbi/sbi_hsm.c b/lib/sbi/sbi_hsm.c index 4662150..67890f3 100644 --- a/lib/sbi/sbi_hsm.c +++ b/lib/sbi/sbi_hsm.c @@ -185,8 +185,7 @@ int sbi_hsm_init(struct sbi_scratch *scratch, u32 hartid, bool cold_boot) struct sbi_hsm_data *hdata; if (cold_boot) { - hart_data_offset = sbi_scratch_alloc_offset(sizeof(*hdata), - "HART_DATA"); + hart_data_offset = sbi_scratch_alloc_offset(sizeof(*hdata)); if (!hart_data_offset) return SBI_ENOMEM; |